summaryrefslogtreecommitdiff
path: root/drivers/vlynq
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-04 00:24:44 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-04 00:36:19 +0300
commitb8541798a8a6a288cb2f5c540bf5270e118c0b0c (patch)
tree553031add6f3c275124cac1c52df61bce7527b57 /drivers/vlynq
parent30adde6b181104249fb6c17b72a9bf12332bc053 (diff)
downloadlinux-b8541798a8a6a288cb2f5c540bf5270e118c0b0c.tar.xz
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/vlynq')
0 files changed, 0 insertions, 0 deletions