diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-05-17 22:26:21 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-05-17 22:37:07 +0200 |
commit | e6000a438e534ee0afd9e83b67f4e23a26dd1067 (patch) | |
tree | 37c62ebda4ce3520c217f250a17e13b1ba28ac50 /drivers/rtc/hctosys.c | |
parent | c402f8ead68ccd05d63f79ab729184498c3467b3 (diff) | |
download | linux-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/hctosys.c')
0 files changed, 0 insertions, 0 deletions