diff options
author | Alexandre Belloni | 2018-05-20 14:33:36 +0200 |
---|---|---|
committer | Alexandre Belloni | 2018-05-23 09:25:27 +0200 |
commit | d482510fee9957ffaca3a0357c655628f3e3870b (patch) | |
tree | 74185f8d03ec53dfba3343c132a7f8d116dd817a /Documentation/thermal | |
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>
Diffstat (limited to 'Documentation/thermal')
0 files changed, 0 insertions, 0 deletions