]> err.no Git - linux-2.6/commitdiff
[PATCH] trivial __user annotations (ipmi)
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
Fri, 9 Sep 2005 19:14:05 +0000 (20:14 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:05:54 +0000 (14:05 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_devintf.c

index 883ac4352be49e4e1606e361d763a8503199a058..a09ff10806874d8fdf03b7c62d9fb8a8d0b0c916 100644 (file)
@@ -735,7 +735,8 @@ static long compat_ipmi_ioctl(struct file *filep, unsigned int cmd,
        case COMPAT_IPMICTL_RECEIVE_MSG:
        case COMPAT_IPMICTL_RECEIVE_MSG_TRUNC:
        {
-               struct ipmi_recv   *precv64, recv64;
+               struct ipmi_recv   __user *precv64;
+               struct ipmi_recv   recv64;
 
                if (get_compat_ipmi_recv(&recv64, compat_ptr(arg)))
                        return -EFAULT;
@@ -748,7 +749,7 @@ static long compat_ipmi_ioctl(struct file *filep, unsigned int cmd,
                                ((cmd == COMPAT_IPMICTL_RECEIVE_MSG)
                                 ? IPMICTL_RECEIVE_MSG
                                 : IPMICTL_RECEIVE_MSG_TRUNC),
-                               (long) precv64);
+                               (unsigned long) precv64);
                if (rc != 0)
                        return rc;