diff options
| author | Curtis Klein <[email protected]> | 2021-06-23 06:26:23 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2021-08-22 08:28:07 +0000 |
| commit | c7b178dae139f8857edc50888cfbf251cd974a38 (patch) | |
| tree | 8cf6ad286f48f6c3909c68100a609833bc8a500b /net/unix/af_unix.c | |
| parent | watchdog: only run driver set_pretimeout op if device supports it (diff) | |
| download | kernel-c7b178dae139f8857edc50888cfbf251cd974a38.tar.gz kernel-c7b178dae139f8857edc50888cfbf251cd974a38.zip | |
watchdog: Fix NULL pointer dereference when releasing cdev
watchdog_hrtimer_pretimeout_stop needs the watchdog device to have a
valid pointer to the watchdog core data to stop the pretimeout hrtimer.
Therefore it needs to be called before the pointers are cleared in
watchdog_cdev_unregister.
Fixes: 7b7d2fdc8c3e ("watchdog: Add hrtimer-based pretimeout feature")
Reported-by: Colin Ian King <[email protected]>
Signed-off-by: Curtis Klein <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
