[PATCH] Fix get_compat_sigevent()
I have no idea how a bug like this lasted so long. Anyways, obvious
memset()'ing of incorrect pointer.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/kernel/compat.c b/kernel/compat.c
index dad1065..ddfcaaa 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -640,7 +640,7 @@
int get_compat_sigevent(struct sigevent *event,
const struct compat_sigevent __user *u_event)
{
- memset(&event, 0, sizeof(*event));
+ memset(event, 0, sizeof(*event));
return (!access_ok(VERIFY_READ, u_event, sizeof(*u_event)) ||
__get_user(event->sigev_value.sival_int,
&u_event->sigev_value.sival_int) ||