summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-at91sam9.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 22:26:21 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 22:37:07 +0200
commite6000a438e534ee0afd9e83b67f4e23a26dd1067 (patch)
tree37c62ebda4ce3520c217f250a17e13b1ba28ac50 /drivers/rtc/rtc-at91sam9.c
parentc402f8ead68ccd05d63f79ab729184498c3467b3 (diff)
downloadlinux-e6000a438e534ee0afd9e83b67f4e23a26dd1067.tar.gz
linux-e6000a438e534ee0afd9e83b67f4e23a26dd1067.tar.bz2
linux-e6000a438e534ee0afd9e83b67f4e23a26dd1067.zip
rtc: tps65910: 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. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-at91sam9.c')
0 files changed, 0 insertions, 0 deletions