提交 d76fdf75 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] trivial __user annotations - rtc-dev

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 427a57a7
...@@ -305,7 +305,7 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file, ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册