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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 05:37:37 +0000 (07:37 +0200)
commit741e3efd8174fbc4278bc3dd8d3d5a3caab7f2c5
tree0df19336de89d076200e19b8d465ccd323f9a3d9
parent003cf675eb0786f6728de391ec821599c38fcfd8
ALSA: line6: toneport: Fix broken usage of timer for delayed execution

commit 7f84ff68be05ec7a5d2acf8fdc734fe5897af48f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/line6/toneport.c