Message ID | alpine.DEB.2.22.394.2101211907060.14700@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=2LUn=GY=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 483ADC433E0 for <linux-arm-kernel@archiver.kernel.org>; Thu, 21 Jan 2021 18:14:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0D1423A56 for <linux-arm-kernel@archiver.kernel.org>; Thu, 21 Jan 2021 18:14:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0D1423A56 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=u3izGG35ps5qaKPLBUnwBUUi8u/6VVQNuYE+FZMNWYE=; b=hUyhv+tJl5F374kDQrx5mIYB+s 3105wxkyF6nn6v97knG5rezRjHvhsr8Lu5EHh8xEGXMG+BHMFYE1lC6B/G8i7VFC6DHdqvtQ6AMFy h1hHelPnfvp46nBDjum3cJvcNejUyWOPFn7B428LWHINsBxH7uol9UoQQdJW6kUuS06x4kjpUDkdJ QtkGtKKb0RHw2Em2G65dcl+4m6XhOc3bDYgUk3XC0ULTjttdFBKmdoJhzTUkB8SBGA6iRLsMt/TTF wpglSejdO546RIanhyKMkXITB+lxeWoIY48Orj22aqxjorfE/1Xvd2ngupH1BfqOSrLhm9fGXu3Nj mlbRr3nQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2eS8-0000YF-JP; Thu, 21 Jan 2021 18:13:04 +0000 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2eS5-0000Wu-VO for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 18:13:03 +0000 X-IronPort-AV: E=Sophos;i="5.79,364,1602540000"; d="scan'208";a="370735789" Received: from clt-128-93-176-60.vpn.inria.fr ([128.93.176.60]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 19:12:54 +0100 Date: Thu, 21 Jan 2021 19:12:54 +0100 (CET) From: Julia Lawall <julia.lawall@inria.fr> X-X-Sender: jll@hadrien To: Felipe Balbi <balbi@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Joel Stanley <joel@jms.id.au>, Andrew Jeffery <andrew@aj.id.au>, Tao Ren <rentao.bupt@gmail.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org> Subject: [PATCH] usb: gadget: aspeed: add missing of_node_put Message-ID: <alpine.DEB.2.22.394.2101211907060.14700@hadrien> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210121_131302_213769_3E8C106B X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Sumera Priyadarsini <sylphrenadin@gmail.com>, linux-usb@vger.kernel.org, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
usb: gadget: aspeed: add missing of_node_put
|
expand
|
--- a/drivers/usb/gadget/udc/aspeed-vhub/hub.c +++ b/drivers/usb/gadget/udc/aspeed-vhub/hub.c @@ -999,8 +999,10 @@ static int ast_vhub_of_parse_str_desc(st str_array[offset].s = NULL; ret = ast_vhub_str_alloc_add(vhub, &lang_str); - if (ret) + if (ret) { + of_node_put(child); break; + } } return ret;