diff options
| author | 2020-03-06 08:34:01 +0100 | |
|---|---|---|
| committer | 2020-03-16 11:12:10 +0100 | |
| commit | c11af8131a4e7ba1960faed731ee7e84c2c13c94 (patch) | |
| tree | ac8645196ed47c8c7c8cfe718a53449bfe004c5a /tools/perf/scripts/python | |
| parent | rtc: cpcap: switch to rtc_time64_to_tm/rtc_tm_to_time64 (diff) | |
rtc: ds1374: fix possible race condition
The RTC IRQ is requested before the struct rtc_device is allocated,
this may lead to a NULL pointer dereference in the IRQ handler.
To fix this issue, allocating the rtc_device struct before requesting
the RTC IRQ using devm_rtc_allocate_device, and use rtc_register_device
to register the RTC device.
Link: https://lore.kernel.org/r/20200306073404.56921-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
