Received: by 10.223.185.116 with SMTP id b49csp826056wrg; Sat, 10 Feb 2018 21:18:45 -0800 (PST) X-Google-Smtp-Source: AH8x225aYn1fIL9uGmJUaF95Hq4D9jsi1k7zpQdloYatdQ3hlgYrdCvs/q7G68QR28dE0LA5kx4J X-Received: by 10.99.105.132 with SMTP id e126mr6303613pgc.250.1518326325510; Sat, 10 Feb 2018 21:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518326325; cv=none; d=google.com; s=arc-20160816; b=fdwZqB5ssFJKKHHGJoxMTMJOEysJy9GvpLCvCiF6Zj2s4Frhu0+ojO/r/JGwXj1Vr2 yHemwVeF3woQepUQItEqPGbZrhZFQIHmG1gqSV+ET7rX2NxCPdB24HLvyyLq9/3tP+vF hDvL0fbuJL3quImUICOGUbgBkk9GcTuVUn5YR06morpd5655msHQE16i5ECBvBfQpbGp APH0pLRxhCF/T/vpbsLaZoDRXew+XLf9yMrbCt01lJ8Njf8j21eyUy0rHa8NffJL6TSP 8cDqfwkNXLAlKynl3VeJYFjHN0QLTo/TQa6a6Vnee7iKDsrq9+d1u3te1PTYLFHuUx/Q QrbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=2cvaIscfdjbHE17aB/jAlbmgqWIzBZUz5Z5ALQTBFK4=; b=e6+lWp6rVZFggnuFz58OahCeRU2Bs8Nbep6LC1BjQJklavEFwmw6zi2Frp3OTlC8LQ cqPv9j+47dtEXUpBFfISHZ7BLTFGTANhqqHw0uceC1mmDbpycnPQiaIZdNY3ow6nxZU/ ED1XvyUapNNgy8ftX4U8zG8GaeG+uGGteBLqOg+qgV1lmQKJyuD4nrHbs2UbrMMuU9Y5 WBzQn7JlcFazu69hKaFP7tHIU7NdR+kQSKAYsjBP7aVOYBg0oJX3Ggz6SNKcSEYETquE i/qS8ok/B5Uda99444Yxtd3G+YSvNungv/Ilfh/NX7U0GZy1URv3cG/aa4M+SggOR/tW MP2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18-v6si1730951plo.701.2018.02.10.21.18.32; Sat, 10 Feb 2018 21:18:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753303AbeBKFQw (ORCPT + 99 others); Sun, 11 Feb 2018 00:16:52 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41363 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752584AbeBKEdl (ORCPT ); Sat, 10 Feb 2018 23:33:41 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekjKc-0002h9-Sg; Sun, 11 Feb 2018 04:33:38 +0000 Received: from ben by deadeye with local (Exim 4.90) (envelope-from ) id 1ekjKZ-0004Xd-1E; Sun, 11 Feb 2018 04:33:35 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Mauro Carvalho Chehab" Date: Sun, 11 Feb 2018 04:20:06 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.2 77/79] [media] cx231xx: Fix the max number of interfaces In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.99-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Mauro Carvalho Chehab commit 139d28826b8e2bc7a9232fde0d2f14812914f501 upstream. The max number of interfaces was read from the wrong descriptor. Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.2: adjust filename] Signed-off-by: Ben Hutchings --- drivers/media/video/cx231xx/cx231xx-cards.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c @@ -1070,8 +1070,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 */