Received: by 10.223.185.116 with SMTP id b49csp5966922wrg; Wed, 7 Mar 2018 22:51:20 -0800 (PST) X-Google-Smtp-Source: AG47ELvwqJittOnZqdNCxuzg3CkXvpLb5QPC/eYNs6z6apHUZiWxkXPEotlZQdw9gIukyKHBIDBD X-Received: by 10.99.108.129 with SMTP id h123mr13180366pgc.30.1520491880004; Wed, 07 Mar 2018 22:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520491879; cv=none; d=google.com; s=arc-20160816; b=zW1Gtg32TFp05yJZO/r3QqZ6LJD85LKleWDI9rhkXiGwTIU5s3Z19XV+VaruhMDSRY tLNOkiHJftzXlgKNMNk0VOMhT9do454k2n4J3Gtg2vi6i+i/Uv9Ekh0jTjXGlZ/JnfUs hlOQUDmnQseJiakrKXIr0vpYhHBhV5lV+PsEI1H+mr8EIwy6YKtWIc1ing2iW6KLAq+Q ytKHoEDjfpyXt9ew8lNITFWJu34y9daleN9ID9+bV2i087IPW63ZidL70QvOjz64inGg JuGCvAarmqpfspoArfJc+WELERRbHu8Gmw09vnWcW8+md5I/G9wrwYo1d2pmda0FkiZ9 5kgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=BXZc1G8UpObPbMzmzIaBnFLU5Ck1rKqL9LLw/DLZRkY=; b=T91ArSoT2YI8oCjKcz+3srJCYXUAji/xP3JgS+YoxeLzYNY6+A7SoGCtDQw/jXjBdR C/9IcYLkr4FX6ldbF0iYCRkA+FOAn4uQYGHQofpghD8ByA2aIUHnP7gy+tHvs4Ir+Zrh RyRYUG0sGVtKRis61ofKILUy4aoOjvKN4iDmN7yK/lbCABeGHP6RCQAbxocR7dB6PCOP TuKa/f1vAsMEA2Cgn/Fp6G1rq5w82hHaYBF0BPdjc5M5IIFrSy4dIvjUZdsi63D1VCcK fJ3DJhTzsNbIq1nScgvmIZ2KPRHV+QZK6ekRBeKOiWUc5jHNkKXMAsOQVs8AvSRGAj2x /JMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=QCuwLSfv; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5-v6si14235458plb.566.2018.03.07.22.51.05; Wed, 07 Mar 2018 22:51:19 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=QCuwLSfv; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965323AbeCHGtz (ORCPT + 99 others); Thu, 8 Mar 2018 01:49:55 -0500 Received: from mail-co1nam03on0091.outbound.protection.outlook.com ([104.47.40.91]:60295 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965060AbeCHE6P (ORCPT ); Wed, 7 Mar 2018 23:58:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BXZc1G8UpObPbMzmzIaBnFLU5Ck1rKqL9LLw/DLZRkY=; b=QCuwLSfv69YmBRWBFuSQv363C4qCRiwLsjqffKKIzHEZGA+XxZl4ux0/DHF+OgtO0ADLy9Wa4PkK/Ycp8NZExxADi8yg0XYQpGAQ0CyFJFZxFzY6fBedUTsaROGWMg34Zr7H6/HKhEK2rMNXJZpNxfovFghjyyvTCD0l75kvCWQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0888.namprd21.prod.outlook.com (52.132.132.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.3; Thu, 8 Mar 2018 04:58:11 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446%2]) with mapi id 15.20.0588.008; Thu, 8 Mar 2018 04:58:11 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Christophe JAILLET , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 16/67] media: bt8xx: Fix err 'bt878_probe()' Thread-Topic: [PATCH AUTOSEL for 4.14 16/67] media: bt8xx: Fix err 'bt878_probe()' Thread-Index: AQHTtpn735GFyF8xP06/dpQX6LIGKQ== Date: Thu, 8 Mar 2018 04:57:38 +0000 Message-ID: <20180308045641.7814-16-alexander.levin@microsoft.com> References: <20180308045641.7814-1-alexander.levin@microsoft.com> In-Reply-To: <20180308045641.7814-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0888;7:IH/pt/P8P1aevvPGFMxs9saeEkVtq1QliNryb8PP00bdOU57sNSva8RwBme08kyNNnSP+2IZQ2vVQJFN0f/Ju2HgtH2EhFBljMrcc+7g336MwHucbtJ1/UlW0KCUZssfkNU4tlPknXWXdQ+cTsCVcwLY8we8NWi6jLW9yJye5KqweNWcoycqzIxz/ZZeICHRmVqpQckjk9ZBoH8T3nOEJJuRB2xr4o3Tn96GMFOcfD62anALXDnuH95yVNeZnSNq;20:X8I71YD1uoBCz5BZ4Yw+CFgSPhgC1wC3FNACvDHnB8Ru/W7SGF9LfVmf0MlyaOwnUSCc98tFeAxpzFVYgZAOXtlue6rE0m85Q6qFkIWE9huYEs5ELwshNTXuihkVzWYgm03jQTlXTZonriCFZIvwJBfspjwktsfGRu9chUKKNUk= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bd207543-1a5d-4640-7802-08d584b13195 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0888; x-ms-traffictypediagnostic: DM5PR2101MB0888: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(155761271638844); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231220)(944501244)(52105095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0888;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0888; x-forefront-prvs: 060503E79B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(346002)(376002)(39380400002)(396003)(189003)(199004)(6116002)(99286004)(2950100002)(6512007)(6666003)(10290500003)(36756003)(5660300001)(106356001)(1076002)(22452003)(3846002)(97736004)(316002)(53936002)(68736007)(105586002)(4326008)(25786009)(54906003)(478600001)(2501003)(186003)(66066001)(76176011)(3280700002)(86362001)(575784001)(14454004)(2900100001)(5250100002)(110136005)(305945005)(7736002)(72206003)(3660700001)(6436002)(2906002)(26005)(6486002)(10090500001)(8676002)(81156014)(107886003)(81166006)(86612001)(6506007)(8936002)(102836004)(22906009)(32563001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0888;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Eopq7kOJm1PQLVvj3swCd75FSA/jsDzW/uuOofcqqtpMB5/tKxyrc4/Gtv9DQQW049Bfu2/uzHfjbUcOojFssNPnqRB6wVW+bnHN40besXlj2DWqwpjXjm6LpAtGo18etjZxFqBJMAt82ePVNvRmGiWTc0LUO0OF9ytjKxHzCGy5jahWVMU155Rfft0za9EyskCeKkx1p9JupmXD36QiYdJA4ObxuYhtMYEL4aUMy8UzrJerq6fmUJhQPFGxUJ9Fe8t9Mbs2nh98Db12YUkjk1ppAAFe6289UIithGjKQYYSAup8ocvRfFu5j+DFQhcLumFNNRuiXAMYIcVF8xB9EQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd207543-1a5d-4640-7802-08d584b13195 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2018 04:57:38.5597 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0888 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 45392ff6881dbe56d41ef0b17c2e576065f8ffa1 ] This is odd to call 'pci_disable_device()' in an error path before a coresponding successful 'pci_enable_device()'. Return directly instead. Fixes: 77e0be12100a ("V4L/DVB (4176): Bug-fix: Fix memory overflow") Signed-off-by: Christophe JAILLET Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/pci/bt8xx/bt878.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/pci/bt8xx/bt878.c b/drivers/media/pci/bt8xx/bt87= 8.c index a5f52137d306..d4bc78b4fcb5 100644 --- a/drivers/media/pci/bt8xx/bt878.c +++ b/drivers/media/pci/bt8xx/bt878.c @@ -422,8 +422,7 @@ static int bt878_probe(struct pci_dev *dev, const struc= t pci_device_id *pci_id) bt878_num); if (bt878_num >=3D BT878_MAX) { printk(KERN_ERR "bt878: Too many devices inserted\n"); - result =3D -ENOMEM; - goto fail0; + return -ENOMEM; } if (pci_enable_device(dev)) return -EIO; --=20 2.14.1