]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd9bc87052f0bca51d29979839a44a2a149cfd50
treea420b1da64e5752da6dc74515867f29ddf75f12c
parent064e66c4fa124f382cd4e76969e36b1d8b46e6a4
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