Received: by 10.213.65.68 with SMTP id h4csp39361imn; Mon, 19 Mar 2018 18:50:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELt+lEVpnigAwYX8u8YnE+W20/ffPQ9CzrEJcJiLbcCewGUCg5tBtAOPjKFjVTZj5wzJFevl X-Received: by 10.98.59.208 with SMTP id w77mr12050051pfj.59.1521510612046; Mon, 19 Mar 2018 18:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510612; cv=none; d=google.com; s=arc-20160816; b=M3frKHG20ilIh4LNtPmXGOpQ37p0IROjk5m/oYrUgNUQpHRFA938Q8KkVnPW7KjBHb Ks0nmeNCIfPxcFlGk4q20PJekZ3oVdhsgsrPfjDuWyGXB4XYcZtH9NHrtuq+wQ6rRby3 6IEF2IIBlPtXhZHyYq1InPRM+qMLUGRJldZ7S7sEss1up0bkKcOjrZv3iTGDdYtkqalR NNPKsiyHL7FJWtE2e7fuOr6bvEEroc1ldwuiWjKSmDLqqfQwYlwYYpLqTUxv4jXrk9V+ W9vIvaYOxTw3NWcC/R3Fy0qDBjhF+ApHr3j0SXJF/PRKUVhGNr2u0ejvasaR+wXKYvS4 edPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zNlrSLHVtDMWSXr05qYWugqjOlRXxUt4oyf5OxDIRbw=; b=ebjdQ9T6L7e0YykN7ROOkLjXU6b4xTGgiscfMaWta/dir/65EHEC5ocYZnbfi7uarA DWsi+mmV85dObo59/f38mTZuDWZ4m1LsbtbCSbVDh2VrDFO3/6s9oBG45OZMy8kSOVAu lVMWE5ZYD1+A0Cf6GmiR3qF4hOulB3BYW7wtSU1Y/tT2sijoIHzgtN5EOWexHCOT1Awr FCCnX3LtxOF0+KzQbT44QO0l2Yq8p4WwHZer6oARPU01r35pRAh/YiBh9jCuOZqw8AKP K0zRAgJIsq43VXva9v4YJ5/0ShWLhf/hqT+OI7X9bHCL4vS/zetIOvJif2Xce4nRgFuF dGew== 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 o14si389961pgn.655.2018.03.19.18.49.58; Mon, 19 Mar 2018 18:50:12 -0700 (PDT) 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 S1031215AbeCSUFK (ORCPT + 99 others); Mon, 19 Mar 2018 16:05:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45630 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965845AbeCSSRl (ORCPT ); Mon, 19 Mar 2018 14:17:41 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C216C11D6; Mon, 19 Mar 2018 18:17:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wei Yongjun , Felipe Balbi Subject: [PATCH 4.4 132/134] USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe() Date: Mon, 19 Mar 2018 19:06:55 +0100 Message-Id: <20180319171908.304050554@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wei Yongjun commit 8874ae5f15f3feef3b4a415b9aed51edcf449aa1 upstream. Add the missing platform_device_put() before return from bdc_pci_probe() in the platform_device_add_resources() error handling case. Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC") Signed-off-by: Wei Yongjun Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/bdc/bdc_pci.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/gadget/udc/bdc/bdc_pci.c +++ b/drivers/usb/gadget/udc/bdc/bdc_pci.c @@ -82,6 +82,7 @@ static int bdc_pci_probe(struct pci_dev if (ret) { dev_err(&pci->dev, "couldn't add resources to bdc device\n"); + platform_device_put(bdc); return ret; }