From: David S. Miller Date: Sat, 16 Apr 2005 22:24:01 +0000 (-0700) Subject: [PATCH] Fix get_compat_sigevent() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51410d3c53d85da0f24277f9580cbec1260ffc8f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/compat.c b/kernel/compat.c index dad10656bf1..ddfcaaa8662 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -640,7 +640,7 @@ long compat_sys_clock_nanosleep(clockid_t which_clock, int flags, 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) ||