diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index dad10656bf14..ddfcaaa86623 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
@@ -640,7 +640,7 @@ long compat_sys_clock_nanosleep(clockid_t which_clock, int flags, | |||
640 | int get_compat_sigevent(struct sigevent *event, | 640 | int get_compat_sigevent(struct sigevent *event, |
641 | const struct compat_sigevent __user *u_event) | 641 | const struct compat_sigevent __user *u_event) |
642 | { | 642 | { |
643 | memset(&event, 0, sizeof(*event)); | 643 | memset(event, 0, sizeof(*event)); |
644 | return (!access_ok(VERIFY_READ, u_event, sizeof(*u_event)) || | 644 | return (!access_ok(VERIFY_READ, u_event, sizeof(*u_event)) || |
645 | __get_user(event->sigev_value.sival_int, | 645 | __get_user(event->sigev_value.sival_int, |
646 | &u_event->sigev_value.sival_int) || | 646 | &u_event->sigev_value.sival_int) || |