Files
linux/drivers/rtc
Alexandre Belloni 23acf86994 rtc: armada38x: fix possible race condition
[ Upstream commit 7d61cbb945 ]

The IRQ is requested 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 requesting the IRQ.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:00:51 +01:00
..
2017-07-07 13:14:14 +02:00
2017-09-05 09:55:02 +02:00
2017-07-07 13:14:14 +02:00
2017-03-09 01:29:17 +01:00
2017-08-24 16:34:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2015-09-05 13:19:06 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2017-01-11 17:23:04 +01:00
2017-08-22 12:05:21 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2017-09-01 01:10:11 +02:00
2017-07-31 00:17:44 +02:00
2017-08-24 11:03:35 +02:00
2016-05-20 12:33:51 +02:00
2017-06-03 10:52:04 +02:00
2016-05-20 12:33:51 +02:00