aboutsummaryrefslogtreecommitdiff
path: root/kernel/utsname_sysctl.c
diff options
context:
space:
mode:
authorAlexandre Belloni2018-05-20 14:33:36 +0200
committerAlexandre Belloni2018-05-23 09:25:27 +0200
commitd482510fee9957ffaca3a0357c655628f3e3870b (patch)
tree74185f8d03ec53dfba3343c132a7f8d116dd817a /kernel/utsname_sysctl.c
parentb72252b6580c9c7ad74644642378e2a9a86b2283 (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 'kernel/utsname_sysctl.c')
0 files changed, 0 insertions, 0 deletions