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

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)