]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] trivial __user annotations - rtc-dev
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 9 Feb 2007 16:38:05 +0000 (16:38 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 9 Feb 2007 17:14:06 +0000 (09:14 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-dev.c

index 94d3df62a5fa85834d440839bba21f6c3054958b..82f2ac87ccd4722c8a4f9dbef562ddae1f6f6064 100644 (file)
@@ -305,7 +305,7 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file,
 
        case RTC_IRQP_READ:
                if (ops->irq_set_freq)
-                       err = put_user(rtc->irq_freq, (unsigned long *) arg);
+                       err = put_user(rtc->irq_freq, (unsigned long __user *)uarg);
                break;
 
        case RTC_IRQP_SET: