aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexandre Belloni <[email protected]>2020-03-11 23:39:51 +0100
committerAlexandre Belloni <[email protected]>2020-03-16 11:55:55 +0100
commit9cf4789e6e4673d0b2c96fa6bb0c35e81b43111a (patch)
tree5e7b64c19aafc2d6167cfa82d4f7f8e8c191171d /tools/perf/scripts/python
parent7863bd076b990f57076f2123337b67b5d5ccd190 (diff)
rtc: 88pm860x: 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. Also remove the unnecessary error message as the core already prints the info. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions