Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40248
b: refs/heads/master
c: 8006036
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik authored and Wim Van Sebroeck committed Oct 11, 2006
1 parent 698ce35 commit 5b58ca5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: a8edd74e4404d011ab821d5bf35b27335d26f001
refs/heads/master: 80060362aaefec507ac2d7a7bd156716d7a7ca91
6 changes: 4 additions & 2 deletions trunk/drivers/char/watchdog/iTCO_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ static int iTCO_wdt_get_timeleft (int *time_left)
spin_unlock(&iTCO_wdt_private.io_lock);

*time_left = (val8 * 6) / 10;
}
} else
return -EINVAL;
return 0;
}

Expand Down Expand Up @@ -439,7 +440,6 @@ static int iTCO_wdt_ioctl (struct inode *inode, struct file *file,
{
int new_options, retval = -EINVAL;
int new_heartbeat;
int time_left;
void __user *argp = (void __user *)arg;
int __user *p = argp;
static struct watchdog_info ident = {
Expand Down Expand Up @@ -499,6 +499,8 @@ static int iTCO_wdt_ioctl (struct inode *inode, struct file *file,

case WDIOC_GETTIMELEFT:
{
int time_left;

if (iTCO_wdt_get_timeleft(&time_left))
return -EINVAL;

Expand Down

0 comments on commit 5b58ca5

Please sign in to comment.