diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-09-24 17:25:34 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-09-28 15:21:02 +0300 |
commit | 7d61cbb945a753af08e247b5f10bdd5dbb8d6c80 (patch) | |
tree | 25903fd8ee17b5ae10cdd068cdd8d2bce9b166ff /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0ae3f24ded773edcc5e40ed94c84fbfabd516e14 (diff) | |
download | linux-7d61cbb945a753af08e247b5f10bdd5dbb8d6c80.tar.xz |
rtc: armada38x: 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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions