[SRU] [Unstable/OEM-5.10] [PATCH 0/2] Fix USB audio devices without quirk

Kai-Heng Feng kai.heng.feng at canonical.com
Fri Mar 12 06:56:03 UTC 2021


BugLink: https://bugs.launchpad.net/bugs/1918670

[Impact]
After LP: #1917842, USB audio devices that don't have quirk stop
working.

[Fix]
1) Only apply quirk if it exists.
2) Check quirk before the driver is freed.

[Test]
Ckeck if USB audio works fine.
The reporter verifed the fix solves the issue.

[Where problems could occur]
This fix checks NULL more thoroughly, so it's unlikely to indroduce any
new issues.

Pavel Skripkin (2):
  ALSA: usb-audio: fix NULL ptr dereference in usb_audio_probe
  ALSA: usb-audio: fix use after free in usb_audio_disconnect

 sound/usb/card.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

-- 
2.30.2




More information about the kernel-team mailing list