|
@@ -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,
|
|
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;
|
|
compat_long_t mtype;
|
|
|
|
|
|
if (get_user(mtype, &msgp->mtype))
|
|
if (get_user(mtype, &msgp->mtype))
|
|
return -EFAULT;
|
|
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,
|
|
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;
|
|
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)
|
|
if (err < 0)
|
|
goto out;
|
|
goto out;
|
|
|
|
|