diff options
author | Alexandre Belloni <[email protected]> | 2018-06-04 14:05:40 +0200 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2018-06-04 14:36:14 +0200 |
commit | 29615d03ccc0f8f01b45178737600810d8bf971f (patch) | |
tree | 5eeb0fd992473e03dc6a711c8b8e1bf30a9d543c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 696fa1d043ecd605166cc97b24c0b7a59dd5a135 (diff) |
rtc: sunxi: 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 <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions