summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-20 15:32:27 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 11:07:08 +0300
commita652e00ee1233e251a337c28e18a1da59224e5ce (patch)
tree5d4a8cc07bf9a3e52519cca3d1d4fb23c2c4b708 /tools/perf/scripts/python/stat-cpi.py
parent540a11d8bd00a89222220efcaa2f33fcbc68404f (diff)
downloadlinux-a652e00ee1233e251a337c28e18a1da59224e5ce.tar.xz
rtc: xgene: 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 struct before requesting the IRQ. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions