[patch 011/198] Fix get_compat_sigevent()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "David S. Miller" <[email protected]>

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]>
---

 25-akpm/kernel/compat.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/compat.c~fix-get_compat_sigevent kernel/compat.c
--- 25/kernel/compat.c~fix-get_compat_sigevent	2005-04-12 03:21:06.070214088 -0700
+++ 25-akpm/kernel/compat.c	2005-04-12 03:21:06.074213480 -0700
@@ -640,7 +640,7 @@ long compat_sys_clock_nanosleep(clockid_
 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) ||
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux