linux/drivers/char/watchdog
Chuck Ebbert 1cc7724810 [WATCHDOG] softdog-timer-running-oops.patch
The softdog watchdog timer has a bug that can create an oops:

1.  Load the module without the nowayout option.
2.  Open the driver and close it without writing 'V' before close.
3.  Unload the module.  The timer will continue to run...
4.  Oops happens when timer fires.

Reported Sun, 10 Oct 2004, by Michael Schierl <schierlm@gmx.de>

Fix is easy: always take a reference on the module on open.
Release it only when the device is closed and no timer is running.
Tested on 2.6.13-rc6 using the soft_noboot option.  While the
timer is running and the device is closed, the module use count
stays at 1.  After the timer fires, it drops to 0.  Repeatedly
opening and closing the driver caused no problems.  Please apply.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2005-09-03 13:59:46 +02:00
..
acquirewdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
advantechwdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
alim1535_wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
alim7101_wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
cpu5wdt.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
eurotechwdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
i8xx_tco.c [PATCH] i8xx_tco.c: arm watchdog only when started 2005-08-09 12:08:21 -07:00
i8xx_tco.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ib700wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
indydog.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
ixp4xx_wdt.c [WATCHDOG] correct sysfs name for watchdog devices 2005-09-03 13:51:18 +02:00
ixp2000_wdt.c [WATCHDOG] correct sysfs name for watchdog devices 2005-09-03 13:51:18 +02:00
Kconfig [WATCHDOG] Kconfig+Makefile-clean 2005-09-03 13:46:56 +02:00
machzwd.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
Makefile [WATCHDOG] Kconfig+Makefile-clean 2005-09-03 13:46:56 +02:00
mixcomwd.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
mpc8xx_wdt.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcwd_pci.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
pcwd_usb.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
pcwd.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
s3c2410_wdt.c [WATCHDOG] s3c2410 watchdog - replace reboot notifier 2005-09-03 13:56:06 +02:00
sa1100_wdt.c [PATCH] ARM: 2833/2: Remove support for WDIOF_MAGICCLOSE from sa1100-wdt 2005-08-03 20:34:52 +01:00
sbc60xxwdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
sc520_wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
sc1200wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
scx200_wdt.c [WATCHDOG] correct sysfs name for watchdog devices 2005-09-03 13:51:18 +02:00
shwdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
softdog.c [WATCHDOG] softdog-timer-running-oops.patch 2005-09-03 13:59:46 +02:00
w83627hf_wdt.c [WATCHDOG] w83627hf_wdt.c-initialized_bios_bug 2005-09-03 13:58:03 +02:00
w83877f_wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
wafer5823wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
wd501p.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wdrtas.c [PATCH] ppc64: add a watchdog driver for rtas 2005-06-23 09:43:34 +10:00
wdt_pci.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
wdt.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00
wdt285.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wdt977.c [PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling 2005-07-27 16:25:54 -07:00