Message ID | 20210312065605.1220504-1-kai.heng.feng@canonical.com |
---|---|
Headers | show |
Series | Fix USB audio devices without quirk | expand |
Acked-by: Tim Gardner <tim.gardner@canonical.com> Is unstable/oem-5.10 the same as focal:linux-oem-5.10 ? Builds OK. On 3/11/21 11:56 PM, Kai-Heng Feng wrote: > 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(-) >
On Fri, Mar 12, 2021 at 02:56:03PM +0800, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1918670
Both commits are already part of 5.12-rc3, so we get these from upstream.
On 12.3.2021 8.56, Kai-Heng Feng wrote: > 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(-) > both already applied via stable updates