]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
[media] tlg2300: fix missing check for audio creation
authorAlan Cox <alan@linux.intel.com>
Tue, 4 Sep 2012 13:43:26 +0000 (10:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Sep 2012 16:50:30 +0000 (13:50 -0300)
commitda35de640a0e9c805aba70439f524234890b96c5
treecf034fd29fe2272dff4f6b92720dfc8bf7a5c012
parent4699903e4f765af7f9d7b3d63c576290c375c47d
[media] tlg2300: fix missing check for audio creation

If we fail to set up the capture device we go through negative indexes and
badness happens. Add the missing test.
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44551

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/tlg2300/pd-alsa.c