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
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
2 matches
Mail list logo