diff options
| author | Michał Mirosław <[email protected]> | 2020-02-11 11:35:01 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-02-11 11:15:28 -0800 |
| commit | 4033714d6cbe04893aa0708d1fcaa45dd8eb3f53 (patch) | |
| tree | 78bc03a6e0dafe61ea682dd8fc1406fabc19ee6a /tools/perf/scripts/python | |
| parent | 032b423b31ad8ce70ec5665163231f37bd57d209 (diff) | |
staging: wfx: fix init/remove vs IRQ race
Current code races in init/exit with interrupt handlers. This is noticed
by the warning below. Fix it by using devres for ordering allocations and
IRQ de/registration.
WARNING: CPU: 0 PID: 827 at drivers/staging/wfx/bus_spi.c:142 wfx_spi_irq_handler+0x5c/0x64 [wfx]
race condition in driver init/deinit
Cc: [email protected]
Fixes: 0096214a59a7 ("staging: wfx: add support for I/O access")
Signed-off-by: Michał Mirosław <[email protected]>
Reviewed-by: Jérôme Pouiller <[email protected]>
Link: https://lore.kernel.org/r/f0c66cbb3110c2736cd4357c753fba8c14ee3aee.1581416843.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions