Searched hist:29615 (Results 1 - 1 of 1) sorted by relevance
/linux-master/drivers/rtc/ | ||
H A D | rtc-sunxi.c | diff 29615d03 Mon Jun 04 06:05:40 MDT 2018 Alexandre Belloni <alexandre.belloni@bootlin.com> rtc: sunxi: fix possible race condition 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> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> |
Completed in 129 milliseconds