projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
watchdog: core: fix WDIOC_GETSTATUS return value
[deliverable/linux.git]
/
drivers
/
watchdog
/
watchdog_dev.c
diff --git
a/drivers/watchdog/watchdog_dev.c
b/drivers/watchdog/watchdog_dev.c
index 672d169bf1dacfa4ae0150da6109caeb266d0590..ef8edecfc526cedaa27bb22b23a2729289221f1b 100644
(file)
--- a/
drivers/watchdog/watchdog_dev.c
+++ b/
drivers/watchdog/watchdog_dev.c
@@
-349,7
+349,7
@@
static long watchdog_ioctl(struct file *file, unsigned int cmd,
sizeof(struct watchdog_info)) ? -EFAULT : 0;
case WDIOC_GETSTATUS:
err = watchdog_get_status(wdd, &val);
- if (err)
+ if (err
== -ENODEV
)
return err;
return put_user(val, p);
case WDIOC_GETBOOTSTATUS:
This page took
0.023533 seconds
and
5
git commands to generate.