ALSA: line6: toneport: Fix broken usage of timer for delayed execution
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2019 13:01:24 +0000 (15:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2019 13:31:24 +0000 (15:31 +0200)
commit7f84ff68be05ec7a5d2acf8fdc734fe5897af48f
treea420b1da64e5752da6dc74515867f29ddf75f12c
parent534420c6ff87d3052540f1fd346e0adcff440819
ALSA: line6: toneport: Fix broken usage of timer for delayed execution

The line6 toneport driver has code for some delayed initialization,
and this hits the kernel Oops because mutex and other sleepable
functions are used in the timer callback.  Fix the abuse by a delayed
work instead so that everything works gracefully.

Reported-by: syzbot+a07d0142e74fdd595cfb@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/toneport.c