]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Cancel pending work at closing a MIDI substream
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 May 2022 13:12:03 +0000 (15:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 25 May 2022 13:13:29 +0000 (15:13 +0200)
commit5cd1fcb0ddff598277afec0bb12f3ff17aacbedb
tree26e8bec01e7245752d55e452d6a7a501c42619b9
parent8796108a6425bea12d05b48429e1a6b0c30bcf9c
ALSA: usb-audio: Cancel pending work at closing a MIDI substream

At closing a USB MIDI output substream, there might be still a pending
work, which would eventually access the rawmidi runtime object that is
being released.  For fixing the race, make sure to cancel the pending
work at closing.

Reported-by: syzbot+6912c9592caca7ca0e7d@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/000000000000e7e75005dfd07cf6@google.com
Link: https://lore.kernel.org/r/20220525131203.11299-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/midi.c