projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d05746
)
watchdog: ts72xx_wdt: locking bug in ioctl
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:40:59 +0000
(11:40 +0300)
committer
Wim Van Sebroeck
<wim@iguana.be>
Sun, 13 Oct 2013 18:01:50 +0000
(20:01 +0200)
Calling the WDIOC_GETSTATUS & WDIOC_GETBOOTSTATUS and twice will cause a
interruptible deadlock.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/ts72xx_wdt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/watchdog/ts72xx_wdt.c
b/drivers/watchdog/ts72xx_wdt.c
index 42913f131dc2b051cdb89db52e72726bb228dd61..c9b0c627fe7e6d8513dd4d43ba18cb65cfbba132 100644
(file)
--- a/
drivers/watchdog/ts72xx_wdt.c
+++ b/
drivers/watchdog/ts72xx_wdt.c
@@
-310,7
+310,8
@@
static long ts72xx_wdt_ioctl(struct file *file, unsigned int cmd,
case WDIOC_GETSTATUS:
case WDIOC_GETBOOTSTATUS:
- return put_user(0, p);
+ error = put_user(0, p);
+ break;
case WDIOC_KEEPALIVE:
ts72xx_wdt_kick(wdt);