Fwd: [PATCH] ipc: fix compat msgrcv with negative msgtyp

2015-03-09 Thread Masanari Iida
ipc: fix compat msgrcv with negative msgtyp For your convinience, the patch is included in this e-mail. Masanari Iida -- Forwarded message -- From: Mateusz Guzik Date: Wed, Jan 15, 2014 at 10:52 PM Subject: [PATCH] ipc: fix compat msgrcv with negative msgtyp To: linux-k

[PATCH] ipc: fix compat msgrcv with negative msgtyp

2014-01-15 Thread Mateusz Guzik
Compat function takes msgtyp argument as u32 and passes it down to do_msgrcv which results in casting to long, thus the sign is lost and we get a big positive number instead. Cast the argument to signed type before passing it down. Signed-off-by: Mateusz Guzik Reported-by: Gabriellla Schmidt Cc