Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18578
b: refs/heads/master
c: a073404
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Wim Van Sebroeck committed Jan 15, 2006
1 parent ddbc1ec commit 04672db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b4977ce0fb9a989ba24fd6b757d07a566abc23d
refs/heads/master: a073404272e8003816d9198f639b1bf11ff0a864
12 changes: 6 additions & 6 deletions trunk/drivers/char/watchdog/sa1100_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static int sa1100dog_release(struct inode *inode, struct file *file)
return 0;
}

static ssize_t sa1100dog_write(struct file *file, const char *data, size_t len, loff_t *ppos)
static ssize_t sa1100dog_write(struct file *file, const char __user *data, size_t len, loff_t *ppos)
{
if (len)
/* Refresh OSMR3 timer. */
Expand All @@ -96,20 +96,20 @@ static int sa1100dog_ioctl(struct inode *inode, struct file *file,

switch (cmd) {
case WDIOC_GETSUPPORT:
ret = copy_to_user((struct watchdog_info *)arg, &ident,
ret = copy_to_user((struct watchdog_info __user *)arg, &ident,
sizeof(ident)) ? -EFAULT : 0;
break;

case WDIOC_GETSTATUS:
ret = put_user(0, (int *)arg);
ret = put_user(0, (int __user *)arg);
break;

case WDIOC_GETBOOTSTATUS:
ret = put_user(boot_status, (int *)arg);
ret = put_user(boot_status, (int __user *)arg);
break;

case WDIOC_SETTIMEOUT:
ret = get_user(time, (int *)arg);
ret = get_user(time, (int __user *)arg);
if (ret)
break;

Expand All @@ -123,7 +123,7 @@ static int sa1100dog_ioctl(struct inode *inode, struct file *file,
/*fall through*/

case WDIOC_GETTIMEOUT:
ret = put_user(pre_margin / OSCR_FREQ, (int *)arg);
ret = put_user(pre_margin / OSCR_FREQ, (int __user *)arg);
break;

case WDIOC_KEEPALIVE:
Expand Down

0 comments on commit 04672db

Please sign in to comment.