diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-03 22:24:44 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-03 22:36:19 +0100 |
commit | b8541798a8a6a288cb2f5c540bf5270e118c0b0c (patch) | |
tree | 553031add6f3c275124cac1c52df61bce7527b57 /drivers/rtc/rtc-rc5t583.c | |
parent | rtc: imx-sc: use rtc_time64_to_tm (diff) | |
download | linux-b8541798a8a6a288cb2f5c540bf5270e118c0b0c.tar.xz linux-b8541798a8a6a288cb2f5c540bf5270e118c0b0c.zip |
rtc: zynqmp: 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
struct before requesting the IRQ.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-rc5t583.c')
0 files changed, 0 insertions, 0 deletions