commit | d482510fee9957ffaca3a0357c655628f3e3870b | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | Sun May 20 14:33:36 2018 +0200 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Wed May 23 09:25:27 2018 +0200 |
tree | 74185f8d03ec53dfba3343c132a7f8d116dd817a | |
parent | b72252b6580c9c7ad74644642378e2a9a86b2283 [diff] |
rtc: st-lpc: 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. Acked-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>