Skip to content

Commit

Permalink
[PATCH] Fix get_compat_sigevent()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
davem330 authored and Linus Torvalds committed Apr 16, 2005
1 parent 5df2408 commit 51410d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 51410d3

Please sign in to comment.