patch-2.4.25 linux-2.4.25/drivers/char/alim7101_wdt.c
Next file: linux-2.4.25/drivers/char/amd76x_pm.c
Previous file: linux-2.4.25/drivers/char/agp/agpgart_be.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/char/alim7101_wdt.c
- Orig date:
2002-11-28 15:53:12.000000000 -0800
diff -urN linux-2.4.24/drivers/char/alim7101_wdt.c linux-2.4.25/drivers/char/alim7101_wdt.c
@@ -209,7 +209,7 @@
static int fop_close(struct inode * inode, struct file * file)
{
- if(wdt_expect_close)
+ if ((wdt_expect_close) || (! nowayout))
wdt_turnoff();
else {
printk(OUR_NAME ": device file closed unexpectedly. Will not stop the WDT!\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)