Alexandre Belloni
64b48a5cbe
mfd: menelaus: Fix possible race condition and leak
...
[ Upstream commit 9612f8f503804d2fd2f63aa6ba1e58bba4612d96 ]
The IRQ work is added before the struct rtc is allocated and registered,
but this struct is used in the IRQ handler. This may lead to a NULL pointer
dereference.
Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc
before calling menelaus_add_irq_work.
Also, this solves a possible leak as the RTC is never released.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-13 11:15:00 -08:00
..
2016-11-17 16:10:24 +01:00
2018-09-26 08:38:12 +02:00
2016-11-29 08:21:29 +00:00
2017-09-05 08:46:00 +01:00
2016-11-29 08:21:30 +00:00
2016-11-29 08:21:31 +00:00
2017-02-13 09:29:43 +00:00
2016-11-29 08:21:32 +00:00
2016-08-08 12:53:26 +01:00
2016-10-04 15:48:03 +01:00
2017-04-27 09:25:04 +01:00
2017-06-06 10:17:42 +01:00
2017-02-13 09:29:40 +00:00
2017-02-13 09:29:40 +00:00
2016-04-19 07:54:50 +01:00
2016-05-09 08:24:46 +01:00
2017-04-27 09:25:05 +01:00
2017-07-06 08:29:12 +01:00
2016-10-04 15:48:04 +01:00
2017-09-05 08:46:01 +01:00
2016-11-29 08:21:25 +00:00
2017-09-05 08:46:00 +01:00
2017-09-05 08:46:01 +01:00
2016-11-29 08:21:33 +00:00
2017-09-05 08:46:00 +01:00
2017-04-27 09:25:03 +01:00
2016-01-14 08:44:01 +00:00
2017-12-29 17:53:46 +01:00
2018-08-03 07:50:27 +02:00
2016-11-21 13:00:18 +00:00
2016-01-14 08:44:02 +00:00
2016-01-14 08:44:03 +00:00
2017-09-05 08:46:00 +01:00
2016-01-14 08:44:03 +00:00
2016-01-14 08:44:04 +00:00
2017-09-05 08:46:01 +01:00
2017-09-05 08:46:01 +01:00
2017-08-22 09:03:00 +01:00
2016-10-04 15:48:01 +01:00
2016-10-04 15:48:01 +01:00
2016-10-04 15:48:01 +01:00
2016-11-29 08:21:27 +00:00
2017-08-22 15:49:33 +02:00
2017-08-15 08:06:14 +01:00
2017-07-06 08:29:12 +01:00
2017-12-20 10:10:16 +01:00
2018-09-09 19:55:58 +02:00
2017-09-05 08:46:00 +01:00
2016-04-19 07:58:30 +01:00
2016-10-04 15:48:03 +01:00
2017-07-06 08:29:12 +01:00
2017-06-19 15:45:01 +01:00
2017-07-06 08:29:13 +01:00
2017-09-05 08:46:02 +01:00
2017-09-05 08:46:02 +01:00
2017-09-05 08:46:02 +01:00
2017-04-27 09:25:04 +01:00
2018-07-03 11:25:00 +02:00
2018-07-03 11:25:00 +02:00
2016-04-09 03:10:50 +02:00
2017-07-06 08:29:11 +01:00
2017-09-05 08:46:02 +01:00
2017-09-14 11:59:30 +02:00
2016-10-04 15:48:04 +01:00
2016-04-19 07:55:23 +01:00
2016-04-11 13:31:40 +01:00
2017-09-05 08:46:01 +01:00
2017-11-30 08:40:49 +00:00
2017-11-02 11:10:55 +01:00
2017-09-05 08:46:00 +01:00
2016-10-04 15:48:05 +01:00
2016-06-29 10:14:30 +01:00
2017-09-05 08:46:00 +01:00
2016-10-04 15:48:02 +01:00
2016-12-14 10:54:27 +01:00
2017-02-13 09:29:43 +00:00
2016-04-19 07:59:14 +01:00
2016-06-29 10:14:28 +01:00
2018-11-13 11:15:00 -08:00
2016-04-19 07:55:30 +01:00
2016-11-29 08:21:34 +00:00
2017-07-06 08:29:12 +01:00
2017-04-27 09:25:05 +01:00
2017-12-20 10:10:33 +01:00
2018-10-18 09:16:21 +02:00
2017-09-05 08:46:02 +01:00
2017-07-06 08:29:12 +01:00
2016-10-04 15:48:02 +01:00
2016-11-29 08:21:36 +00:00
2017-07-06 08:29:12 +01:00
2016-05-09 13:27:38 +01:00
2016-05-09 13:27:38 +01:00
2016-04-19 07:55:52 +01:00
2017-07-18 08:27:18 +01:00
2017-08-21 08:54:56 +01:00
2017-07-06 08:29:11 +01:00
2016-04-19 07:56:17 +01:00
2017-09-05 08:45:59 +01:00
2016-10-04 15:48:02 +01:00
2016-05-09 13:27:38 +01:00
2016-05-09 13:27:38 +01:00
2016-11-29 08:21:29 +00:00
2016-04-19 07:56:28 +01:00
2018-09-15 09:45:28 +02:00
2017-07-06 08:29:12 +01:00
2017-04-27 09:25:05 +01:00
2017-09-04 14:49:04 +01:00
2017-07-06 08:29:12 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:07 +01:00
2016-08-10 09:25:18 +01:00
2016-04-19 07:56:35 +01:00
2016-11-29 08:21:26 +00:00
2017-02-13 09:29:40 +00:00
2016-11-29 08:21:25 +00:00
2017-09-05 08:46:01 +01:00
2016-11-29 08:21:19 +00:00
2017-07-06 08:29:12 +01:00
2018-09-19 22:43:44 +02:00
2017-04-27 09:25:04 +01:00
2017-05-22 17:26:58 -07:00
2017-07-18 08:27:37 +01:00
2016-06-29 10:14:35 +01:00
2017-08-15 08:27:22 +01:00
2016-03-16 08:50:15 +00:00
2016-03-16 08:50:36 +00:00
2016-11-29 08:21:40 +00:00
2016-10-26 10:30:29 +01:00
2017-06-15 18:23:27 +01:00
2016-11-29 08:21:21 +00:00
2017-02-13 09:29:43 +00:00
2017-04-27 09:25:04 +01:00
2017-09-05 08:46:01 +01:00
2017-12-29 17:53:46 +01:00
2017-09-04 14:41:02 +01:00
2017-09-04 14:41:02 +01:00
2017-09-04 14:41:02 +01:00
2017-12-29 17:53:46 +01:00
2017-09-05 08:45:59 +01:00
2017-11-02 11:10:55 +01:00
2016-10-04 15:48:03 +01:00
2016-04-19 07:59:06 +01:00
2016-05-09 13:27:39 +01:00
2017-07-06 08:29:11 +01:00
2017-07-06 08:29:11 +01:00
2017-03-23 11:45:50 +00:00
2017-07-06 08:29:11 +01:00
2016-11-29 08:21:26 +00:00
2016-05-09 15:41:35 +01:00
2016-05-09 08:23:56 +01:00
2016-11-29 08:21:27 +00:00
2016-03-16 08:50:22 +00:00