Skip to content

Commit

Permalink
cx231xx: Fix the max number of interfaces
Browse files Browse the repository at this point in the history
commit 139d288 upstream.

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

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
  • Loading branch information
Mauro Carvalho Chehab authored and Ben Hutchings committed Feb 13, 2018
1 parent 41ffa4f commit 7fcb93a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/video/cx231xx/cx231xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,8 +1070,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 */

Expand Down

0 comments on commit 7fcb93a

Please sign in to comment.