mbox series

[0/5] ALSA: Fix USB disconnect behavior for non-standard drivers

Message ID 20241113111042.15058-1-tiwai@suse.de (mailing list archive)
Headers show
Series ALSA: Fix USB disconnect behavior for non-standard drivers | expand

Message

Takashi Iwai Nov. 13, 2024, 11:10 a.m. UTC
This is a series of patches to fix problems of USB non-standard audio
drivers at disconnections.  A few of them call snd_card_free() at the
disconnect callback, and this blocks until all files get closed.  It
may eventually trigger a soft lockup, as spotted by syzkaller.
Those can be fixed by replacing with snd_card_free_when_closed()
version.

While looking through the code, I stumbled on other issues like 6fire
driver's release management, and the fix is included as well.


Takashi

===

Takashi Iwai (5):
  ALSA: usx2y: Use snd_card_free_when_closed() at disconnection
  ALSA: us122l: Use snd_card_free_when_closed() at disconnection
  ALSA: us122l: Drop mmap_count field
  ALSA: caiaq: Use snd_card_free_when_closed() at disconnection
  ALSA: 6fire: Release resources at card release

 sound/usb/6fire/chip.c     | 10 +++++-----
 sound/usb/caiaq/audio.c    | 10 ++++++++--
 sound/usb/caiaq/audio.h    |  1 +
 sound/usb/caiaq/device.c   | 19 +++++++++++++++----
 sound/usb/caiaq/input.c    | 12 +++++++++---
 sound/usb/caiaq/input.h    |  1 +
 sound/usb/usx2y/us122l.c   | 21 +--------------------
 sound/usb/usx2y/us122l.h   |  2 --
 sound/usb/usx2y/usbusx2y.c |  2 +-
 9 files changed, 41 insertions(+), 37 deletions(-)