diff options
| author | 2018-05-17 22:26:21 +0200 | |
|---|---|---|
| committer | 2018-05-17 22:37:07 +0200 | |
| commit | e6000a438e534ee0afd9e83b67f4e23a26dd1067 (patch) | |
| tree | 37c62ebda4ce3520c217f250a17e13b1ba28ac50 /include/linux | |
| parent | rtc: ab-b5ze-s3: let the core handle the RTC range (diff) | |
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 'include/linux')
0 files changed, 0 insertions, 0 deletions
