aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/wdt.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-03-03 11:57:40 -0800
committerWim Van Sebroeck <wim@iguana.be>2010-03-07 10:31:05 +0000
commitc1bf3acffcddcf794e3d8a1d25fb8bd4d5912383 (patch)
treea001380b967c60c0bff3c0a93c3b3fe5c4a33d3e /drivers/watchdog/wdt.c
parent168b5251adddb1554926cfb94f79a8a28bc6ebe5 (diff)
downloadkernel_samsung_espresso10-c1bf3acffcddcf794e3d8a1d25fb8bd4d5912383.zip
kernel_samsung_espresso10-c1bf3acffcddcf794e3d8a1d25fb8bd4d5912383.tar.gz
kernel_samsung_espresso10-c1bf3acffcddcf794e3d8a1d25fb8bd4d5912383.tar.bz2
[WATCHDOG] drivers/watchdog/wdt.c:wdt_ioctl(): make `ident' non-static
Making this instance static exposes the code to SMP races, etc. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/wdt.c')
-rw-r--r--drivers/watchdog/wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/wdt.c b/drivers/watchdog/wdt.c
index 3bbefe9..bfda2e9 100644
--- a/drivers/watchdog/wdt.c
+++ b/drivers/watchdog/wdt.c
@@ -358,7 +358,7 @@ static long wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
int new_heartbeat;
int status;
- static struct watchdog_info ident = {
+ struct watchdog_info ident = {
.options = WDIOF_SETTIMEOUT|
WDIOF_MAGICCLOSE|
WDIOF_KEEPALIVEPING,