diff options
| author | Alexandre Belloni <[email protected]> | 2020-03-06 08:34:01 +0100 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2020-03-16 11:12:10 +0100 |
| commit | c11af8131a4e7ba1960faed731ee7e84c2c13c94 (patch) | |
| tree | ac8645196ed47c8c7c8cfe718a53449bfe004c5a /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | d238df15e5cdfae54688ed9c1b33e19ed747dcda (diff) | |
rtc: ds1374: 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.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions