diff options
| author | Madhuparna Bhowmik <[email protected]> | 2020-04-17 21:04:51 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-04-23 16:55:24 +0200 |
| commit | 44b8fb6eaa7c3fb770bf1e37619cdb3902cca1fc (patch) | |
| tree | 9d65c3a0c35a7f41609eb40805456f93fdb3e710 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | c18c1f103503981bfbb3b9c3cdf3d2ea14f8e010 (diff) | |
drivers: char: tlclk.c: Avoid data race between init and interrupt handler
After registering character device the file operation callbacks can be
called. The open callback registers interrupt handler.
Therefore interrupt handler can execute in parallel with rest of the init
function. To avoid such data race initialize telclk_interrupt variable
and struct alarm_events before registering character device.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Madhuparna Bhowmik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions