aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-09-24 16:25:34 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-09-28 14:21:02 +0200
commit7d61cbb945a753af08e247b5f10bdd5dbb8d6c80 (patch)
tree25903fd8ee17b5ae10cdd068cdd8d2bce9b166ff /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent0ae3f24ded773edcc5e40ed94c84fbfabd516e14 (diff)
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/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions