]> git.hungrycats.org Git - linux/commitdiff
cx231xx: Fix the max number of interfaces
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 27 Jul 2014 19:27:27 +0000 (16:27 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Feb 2018 18:42:33 +0000 (18:42 +0000)
commit 139d28826b8e2bc7a9232fde0d2f14812914f501 upstream.

The max number of interfaces was read from the wrong descriptor.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/usb/cx231xx/cx231xx-cards.c

index 5cc7f9220d5179702bcb8a8a3b2a107376b5ab79..84b129e109ca8e8fd5f147b77fd85db3e8e2120d 100644 (file)
@@ -1185,8 +1185,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
        dev->vbi_or_sliced_cc_mode = 0;
 
        /* get maximum no.of IAD interfaces */
-       assoc_desc = udev->actconfig->intf_assoc[0];
-       dev->max_iad_interface_count = assoc_desc->bInterfaceCount;
+       dev->max_iad_interface_count = udev->config->desc.bNumInterfaces;
 
        /* init CIR module TBD */