aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2023-04-18 19:25:30 +0200
committerWim Van Sebroeck <[email protected]>2023-04-22 16:05:39 +0200
commit87b22656ca6a896d0378e9e60ffccb0c82f48b08 (patch)
tree122f9d85dd4a69059d6a672ba8b493ec20b366d8 /tools/testing/selftests/bpf
parenta23c83a0ae0280632e734aff1dbf299f602a79c4 (diff)
watchdog: menz069_wdt: fix watchdog initialisation
Doing a 'cat /dev/watchdog0' with menz069_wdt as watchdog0 will result in a NULL pointer dereference. This happens because we're passing the wrong pointer to watchdog_register_device(). Fix this by getting rid of the static watchdog_device structure and use the one embedded into the driver's per-instance private data. Signed-off-by: Johannes Thumshirn <[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 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions