Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319980
b: refs/heads/master
c: 05ba3f1
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Linus Torvalds committed Jul 31, 2012
1 parent 734fb93 commit ee6f5ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b610c04c667f3c056243fd64041c7f152a512ee4
refs/heads/master: 05ba3f1aa1b04e921068249dd52a80bc84c2aeb4
4 changes: 2 additions & 2 deletions trunk/include/linux/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ long compat_sys_shmat(int first, int second, compat_uptr_t third, int version,
#else
long compat_sys_semctl(int semid, int semnum, int cmd, int arg);
long compat_sys_msgsnd(int msqid, struct compat_msgbuf __user *msgp,
size_t msgsz, int msgflg);
compat_ssize_t msgsz, int msgflg);
long compat_sys_msgrcv(int msqid, struct compat_msgbuf __user *msgp,
size_t msgsz, long msgtyp, int msgflg);
compat_ssize_t msgsz, long msgtyp, int msgflg);
long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
#endif
long compat_sys_msgctl(int first, int second, void __user *uptr);
Expand Down
8 changes: 4 additions & 4 deletions trunk/ipc/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,21 +373,21 @@ long compat_sys_semctl(int semid, int semnum, int cmd, int arg)
}

long compat_sys_msgsnd(int msqid, struct compat_msgbuf __user *msgp,
size_t msgsz, int msgflg)
compat_ssize_t msgsz, int msgflg)
{
compat_long_t mtype;

if (get_user(mtype, &msgp->mtype))
return -EFAULT;
return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg);
return do_msgsnd(msqid, mtype, msgp->mtext, (ssize_t)msgsz, msgflg);
}

long compat_sys_msgrcv(int msqid, struct compat_msgbuf __user *msgp,
size_t msgsz, long msgtyp, int msgflg)
compat_ssize_t msgsz, long msgtyp, int msgflg)
{
long err, mtype;

err = do_msgrcv(msqid, &mtype, msgp->mtext, msgsz, msgtyp, msgflg);
err = do_msgrcv(msqid, &mtype, msgp->mtext, (ssize_t)msgsz, msgtyp, msgflg);
if (err < 0)
goto out;

Expand Down

0 comments on commit ee6f5ed

Please sign in to comment.