diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-03-04 12:39:03 +0100 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-02-02 15:59:30 +0100 |
commit | 4602761bac19ae3373f003bc3cabc4546c8e5207 (patch) | |
tree | 8841a0c2fa2844223291b19e36d78d845b06f5c4 /ipc | |
parent | 910f9e7dbee0aef348cecd53d54fb70f77e8321b (diff) | |
download | lwn-4602761bac19ae3373f003bc3cabc4546c8e5207.tar.gz lwn-4602761bac19ae3373f003bc3cabc4546c8e5207.zip |
ipc/compat_sys_msgrcv: change msgtyp type from long to compat_long_t
commit 291fdb0bcebd5e8db6af767c1fdc522167dad73d upstream.
Change the type of compat_sys_msgrcv's msgtyp parameter from long
to compat_long_t, since compat user space passes only a 32 bit signed
value.
Let the compat wrapper do proper sign extension to 64 bit of this
parameter.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/compat.c b/ipc/compat.c index d3b376025e9b..e0012184f65e 100644 --- a/ipc/compat.c +++ b/ipc/compat.c @@ -430,9 +430,9 @@ COMPAT_SYSCALL_DEFINE4(msgsnd, int, msqid, compat_uptr_t, msgp, } COMPAT_SYSCALL_DEFINE5(msgrcv, int, msqid, compat_uptr_t, msgp, - compat_ssize_t, msgsz, long, msgtyp, int, msgflg) + compat_ssize_t, msgsz, compat_long_t, msgtyp, int, msgflg) { - return do_msgrcv(msqid, compat_ptr(msgp), (ssize_t)msgsz, msgtyp, + return do_msgrcv(msqid, compat_ptr(msgp), (ssize_t)msgsz, (long)msgtyp, msgflg, compat_do_msg_fill); } |