From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 060C0E92700 for ; Thu, 5 Oct 2023 14:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P4wHGs4ilZXsPadGqAt6y6PM6oaIVI+bq5OftP1zCrk=; b=TeMIuk41+D1vMn 2nMIbUnB2+2oTDIht2FJ8uRmy3Q5ZnYDKe5erRwlbnlZ0wwfOVifWZZtF7+jsfQMNSmkFB959jlvR lhk9tsM9bo35GWR46uJ1QQdUAgw4LryHP2QpdZk62Ym3EFKvQy5E9NdkuwCg4TZnPBY55Mfn+FTHU q4rtSk66MzGhUOJJRwkV95TX4EUmu9crwqEZI/WPHCMe8UOifVdJxIQQxrNmPvtB1zFgf3mR49epO 8iSta2xfTOczavEbOclH8SMyj/wG9F1ujVXk1VK1zQELffiEfudMfB3EneXMY+1dkLhNxXACn2CYy seug+sJM0hcPQh2HkBCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoOt5-003eMG-1K; Thu, 05 Oct 2023 13:59:35 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoOt2-003eKt-1P for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 13:59:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 52970CE22C7; Thu, 5 Oct 2023 13:59:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36419C116B6; Thu, 5 Oct 2023 13:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696514369; bh=yjYdr6NMBB3N4qwB1LomEzfwhBRh5oJTamUwrfSI7OE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pv/AR6JkSGeFIqnlvX/drtjCXMOJLu7iGRRabEsczdjGjHPumeaL14UkUNumGcccb IZfT7lvUQiSii+Qj50KUaQeE1RHc0J/khpg/N1wnp1QN6m70mZxWtWP6ye+vG4aXM9 kd3IHzcf78Vb+ZTlUNm0tg3hWRCbruWm8prlVHPU= Date: Thu, 5 Oct 2023 15:59:26 +0200 From: Greg KH To: Zhang Shurong Cc: Thinh.Nguyen@synopsys.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: dwc3: fix possible object reference leak Message-ID: <2023100512-crayon-prowess-0f27@gregkh> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231005_065932_650835_A8FDD0FE X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 05, 2023 at 09:49:46PM +0800, Zhang Shurong wrote: > The of_find_device_by_node takes a reference to the struct device > when find the match device,we should release it when fail. > > Fix it by calling by calling platform_device_put when error returns. > > Signed-off-by: Zhang Shurong > --- What commit id does this fix? And how did you find this? How was it tested? thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel