diff options
author | David S. Miller <davem@davemloft.net> | 2005-04-16 15:24:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 15:24:01 -0700 |
commit | 51410d3c53d85da0f24277f9580cbec1260ffc8f (patch) | |
tree | 947575daff5bee85e09a438f40f11aae57cd0475 /kernel | |
parent | 5df240826c90afdc7956f55a004ea6b702df9203 (diff) |
[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>
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, 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) || |