Skip to contentSkip to conversation

trivial __user annotations - rtc-dev

PATCH New Al Viro 1 participant 1 message Feb 9, 2007 Real time clock (RTC)

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 trivial __user annotations - rtc-dev

---
 drivers/rtc/rtc-dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-dev.c +1 -1
index 94d3df6..82f2ac8 100644
@@ -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:
Signature · 1 line
1.5.0-rc2.GIT