diff options
author | Geert Uytterhoeven <[email protected]> | 2018-07-06 11:05:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-07-06 16:41:15 +0200 |
commit | f661131766e45bc0b3c8b85b19676a470dc75abf (patch) | |
tree | b4b47e57b3bd04d5ad5ec074661dbd900db00603 /lib/netdev-notifier-error-inject.c | |
parent | 2c4ee23530ffc022dc22d2fd4b0eb039c6b4c5e9 (diff) |
serial: sh-sci: Stop TX DMA workqueue during port shutdown
The transmit DMA workqueue is never stopped, hence the work function may
be called after the port has been shut down.
Fix this race condition by cancelling queued work, if any, before DMA
release. Don't initialize the work if DMA initialization failed, as it
won't be used anyway.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions