lkml.org 
[lkml]   [2018]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 127/136] [media] cx231xx: Fix the max number of interfaces
    3.16.54-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Mauro Carvalho Chehab <m.chehab@samsung.com>

    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 | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    --- a/drivers/media/usb/cx231xx/cx231xx-cards.c
    +++ b/drivers/media/usb/cx231xx/cx231xx-cards.c
    @@ -1185,8 +1185,7 @@ static int cx231xx_usb_probe(struct usb_
    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 */

    \
     
     \ /
      Last update: 2018-02-11 05:55    [W:4.141 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site