patch-2.4.6 linux/drivers/char/sbc60xxwdt.c
Next file: linux/drivers/char/sh-sci.c
Previous file: linux/drivers/char/rtc.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Wed Jun 27 17:10:55 2001
- Orig file:
v2.4.5/linux/drivers/char/sbc60xxwdt.c
- Orig date:
Tue May 22 10:23:16 2001
diff -u --recursive --new-file v2.4.5/linux/drivers/char/sbc60xxwdt.c linux/drivers/char/sbc60xxwdt.c
@@ -174,9 +174,13 @@
/* now scan */
for(ofs = 0; ofs != count; ofs++)
+ {
+ char c;
+ if(get_user(c, buf+ofs))
+ return -EFAULT;
if(buf[ofs] == 'V')
wdt_expect_close = 1;
-
+ }
/* Well, anyhow someone wrote to us, we should return that favour */
next_heartbeat = jiffies + WDT_HEARTBEAT;
return 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)