Re: [PATCH -next] watchdog: Fix potential dereferencing of null pointer

2020-11-02 Thread Guenter Roeck
On 11/1/20 11:44 PM, Wang Wensheng wrote: > A reboot notifier, which stops the WDT by calling the stop hook without > any check, would be registered when we set WDOG_STOP_ON_REBOOT flag. > > Howerer we allow the WDT driver to omit the stop hook since commit > "d0684c8a93549" ("watchdog: Make stop

[PATCH -next] watchdog: Fix potential dereferencing of null pointer

2020-11-01 Thread Wang Wensheng
A reboot notifier, which stops the WDT by calling the stop hook without any check, would be registered when we set WDOG_STOP_ON_REBOOT flag. Howerer we allow the WDT driver to omit the stop hook since commit "d0684c8a93549" ("watchdog: Make stop function optional") and provide a module parameter f