mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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>
This commit is contained in:
parent
5df240826c
commit
51410d3c53
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ long compat_sys_clock_nanosleep(clockid_t which_clock, int flags,
|
||||||
int get_compat_sigevent(struct sigevent *event,
|
int get_compat_sigevent(struct sigevent *event,
|
||||||
const struct compat_sigevent __user *u_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)) ||
|
return (!access_ok(VERIFY_READ, u_event, sizeof(*u_event)) ||
|
||||||
__get_user(event->sigev_value.sival_int,
|
__get_user(event->sigev_value.sival_int,
|
||||||
&u_event->sigev_value.sival_int) ||
|
&u_event->sigev_value.sival_int) ||
|
||||||
|
|
Loading…
Reference in a new issue