[PATCH] trivial __user annotations - rtc-dev
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
427a57a782
commit
d76fdf754a
@ -305,7 +305,7 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file,
|
|||||||
|
|
||||||
case RTC_IRQP_READ:
|
case RTC_IRQP_READ:
|
||||||
if (ops->irq_set_freq)
|
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;
|
break;
|
||||||
|
|
||||||
case RTC_IRQP_SET:
|
case RTC_IRQP_SET:
|
||||||
|
Loading…
Reference in New Issue
Block a user