tree a6fce7e45fef19f5c7b975a1209e12ff4bc0dc40
parent 6b6585cb092628731b5b195d1a28d2b6a106bf46
author David S. Miller <[EMAIL PROTECTED]> Tue Apr 12 08:24:37 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:24:37 2005

[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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 compat.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: kernel/compat.c
===================================================================
--- d0318223d94974bbf93901b26dfe0ace293ce7e5/kernel/compat.c  (mode:100644 
sha1:47da2782132addbde19108565cba87b261c8c123)
+++ a6fce7e45fef19f5c7b975a1209e12ff4bc0dc40/kernel/compat.c  (mode:100644 
sha1:7eb88b9d9677003f7431702905d9eb227bf42155)
@@ -640,7 +640,7 @@
 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 bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to