forked from Minki/linux
0b074ab7fc
The current code performs the cancel of a delayed work at the late
stage of disconnection procedure, which may lead to the access to the
already cleared state.
This patch assures to call cancel_delayed_work_sync() at the beginning
of the disconnection procedure for avoiding that race. The delayed
work object is now assigned in the common line6 object instead of its
derivative, so that we can call cancel_delayed_work_sync().
Along with the change, the startup function is called via the new
callback instead. This will make it easier to port other LINE6
drivers to use the delayed work for startup in later patches.
Reported-by: syzbot+5255458d5e0a2b10bbb9@syzkaller.appspotmail.com
Fixes:
|
||
---|---|---|
.. | ||
capture.c | ||
capture.h | ||
driver.c | ||
driver.h | ||
Kconfig | ||
Makefile | ||
midi.c | ||
midi.h | ||
midibuf.c | ||
midibuf.h | ||
pcm.c | ||
pcm.h | ||
playback.c | ||
playback.h | ||
pod.c | ||
podhd.c | ||
toneport.c | ||
variax.c |