Johannes Thumshirn
f1d3fedf8d
watchdog: menz069_wdt: fix watchdog initialisation
...
[ Upstream commit 87b22656ca6a896d0378e9e60ffccb0c82f48b08 ]
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 <jth@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230418172531.177349-2-jth@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:23:57 +02:00
..
2017-12-28 20:45:28 +01:00
2017-12-28 20:45:28 +01:00
2017-11-21 15:57:05 -08:00
2018-03-24 10:19:40 +01:00
2018-03-03 17:04:16 +01:00
2021-07-20 16:16:13 +02:00
2018-03-24 10:19:40 +01:00
2023-03-11 16:31:58 +01:00
2018-03-24 10:19:40 +01:00
2016-10-05 18:36:18 -04:00
2017-02-24 14:00:23 -08:00
2018-03-24 10:19:40 +01:00
2018-03-24 10:19:40 +01:00
2019-09-06 10:22:02 +02:00
2018-03-24 10:19:40 +01:00
2018-03-24 10:19:40 +01:00
2017-02-24 14:00:23 -08:00
2018-05-21 21:24:40 +02:00
2018-07-07 17:52:26 +02:00
2017-11-21 15:57:07 -08:00
2017-11-02 15:50:26 -07:00
2018-03-24 10:19:40 +01:00
2018-03-24 10:19:40 +01:00
2020-06-25 15:32:58 +02:00
2018-06-07 12:41:43 +02:00
2018-07-07 17:52:26 +02:00
2023-02-22 12:47:15 +01:00
2018-03-24 10:19:40 +01:00
2018-03-13 19:14:19 +01:00
2018-03-24 10:19:40 +01:00
2017-02-24 14:00:23 -08:00
2017-12-28 20:45:51 +01:00
2021-11-26 11:36:15 +01:00
2017-12-28 20:45:02 +01:00
2018-03-03 17:04:15 +01:00
2018-05-21 21:24:42 +02:00
2017-12-28 20:45:18 +01:00
2017-12-28 20:45:52 +01:00
2018-07-07 17:52:26 +02:00
2019-10-11 18:21:00 +02:00
2017-06-05 20:37:35 +02:00
2017-09-09 20:06:25 +02:00
2017-11-02 11:10:55 +01:00
2021-08-08 08:54:29 +02:00
2018-05-14 23:58:23 +01:00
2021-11-26 11:36:15 +01:00
2018-08-22 17:31:34 -07:00
2017-09-04 13:53:15 +02:00
2016-12-16 06:53:55 -08:00
2021-07-20 16:16:11 +02:00
2017-11-21 15:57:05 -08:00
2018-08-02 15:57:12 +02:00
2018-07-07 17:52:26 +02:00
2018-07-07 17:52:26 +02:00
2021-03-04 09:39:55 +01:00
2018-05-21 21:25:23 +02:00
2023-06-09 10:23:57 +02:00
2019-12-05 09:19:44 +01:00
2018-03-03 17:04:14 +01:00
2017-11-21 15:57:05 -08:00
2018-07-07 17:52:26 +02:00
2017-12-28 20:45:36 +01:00
2019-02-27 10:08:52 +01:00
2018-03-24 10:19:40 +01:00
2018-03-24 10:19:40 +01:00
2017-02-24 14:00:23 -08:00
2018-03-24 10:19:39 +01:00
2017-11-21 15:57:07 -08:00
2017-09-04 21:19:03 +02:00
2017-09-04 21:19:03 +02:00
2018-05-21 21:24:40 +02:00
2021-11-26 11:35:59 +01:00
2018-08-02 15:57:09 +02:00
2017-04-20 12:02:32 +01:00
2017-12-28 20:45:29 +01:00
2023-03-11 16:31:58 +01:00
2017-11-21 15:57:07 -08:00
2016-07-25 12:02:32 +02:00
2016-07-25 12:02:43 +02:00
2017-11-21 15:57:07 -08:00
2018-03-03 17:04:13 +01:00
2016-10-08 10:27:13 +02:00
2016-10-08 10:27:17 +02:00
2020-12-30 11:26:05 +01:00
2018-01-08 10:08:36 +00:00
2020-11-05 11:08:44 +01:00
2019-11-24 08:19:41 +01:00
2020-02-01 09:37:08 +00:00
2019-02-27 10:08:52 +01:00
2020-01-27 14:50:45 +01:00
2017-06-05 20:37:17 +02:00
2017-06-05 20:38:52 +02:00
2017-02-24 14:00:23 -08:00
2019-12-05 09:21:32 +01:00
2021-07-20 16:16:11 +02:00
2023-04-20 12:04:41 +02:00
2021-07-20 16:16:11 +02:00
2017-09-09 21:14:46 +02:00
2018-04-16 10:22:39 +02:00
2017-11-21 15:57:07 -08:00
2018-03-03 17:04:13 +01:00
2017-03-01 06:15:10 -08:00
2020-04-23 10:30:12 +02:00
2018-01-21 12:56:37 +01:00
2020-10-30 10:38:22 +01:00
2020-12-30 11:26:03 +01:00
2018-03-24 10:19:40 +01:00
2018-08-02 15:57:09 +02:00
2018-08-02 15:57:11 +02:00
2017-02-24 14:00:23 -08:00
2018-03-03 17:04:13 +01:00
2018-07-07 17:52:26 +02:00
2018-03-24 10:19:40 +01:00
2017-09-09 20:06:14 +02:00
2017-09-04 14:41:02 +01:00
2016-09-23 22:36:32 +02:00
2018-03-24 10:19:40 +01:00
2017-11-21 15:57:05 -08:00
2019-11-24 08:19:43 +01:00
2021-07-20 16:16:11 +02:00
2018-04-16 10:22:39 +02:00
2018-04-16 10:22:39 +02:00
2020-12-30 11:26:04 +01:00
2023-03-11 16:31:58 +01:00
2016-10-08 10:27:24 +02:00
2017-11-02 11:10:55 +01:00
2020-03-05 16:42:17 +01:00
2017-12-28 20:45:30 +01:00
2017-04-20 12:02:32 +01:00
2018-03-24 10:19:40 +01:00
2018-03-24 10:19:40 +01:00
2017-12-28 20:45:44 +01:00
2017-09-09 21:16:17 +02:00
2017-09-09 20:18:43 +02:00