]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ALSA: line6: Fix NULL dereference at podhd_disconnect()
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Oct 2017 12:26:27 +0000 (14:26 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:34 +0000 (09:49 -0500)
commitf2ad09b00bc646efde987eb13b486502d9feffaa
tree205f954c9a12db1b719846f0edda80dbe6320ad9
parent8ab7bdd812554f6194bd7bcb7b8e58ad18b0d117
ALSA: line6: Fix NULL dereference at podhd_disconnect()

BugLink: http://bugs.launchpad.net/bugs/1724669
commit 54a4b2b45817ea2365b40c923c098a26af0c0dbb upstream.

When podhd_init() failed with the acquiring a ctrl i/f, the line6
helper still calls the disconnect callback that eventually calls again
usb_driver_release_interface() with the NULL intf.

Put the proper NULL check before calling it for avoiding an Oops.

Fixes: fc90172ba283 ("ALSA: line6: Claim pod x3 usb data interface")
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
sound/usb/line6/podhd.c