commit | e6000a438e534ee0afd9e83b67f4e23a26dd1067 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | Thu May 17 22:26:21 2018 +0200 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Thu May 17 22:37:07 2018 +0200 |
tree | 37c62ebda4ce3520c217f250a17e13b1ba28ac50 | |
parent | c402f8ead68ccd05d63f79ab729184498c3467b3 [diff] |
rtc: tps65910: 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>