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 C033EC433F5 for ; Sat, 1 Oct 2022 00:07:41 +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:Message-Id:Date:To:Cc:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=V1Pjg81clWruS/pnJDC+RfMjJ/C/jAtMsDeo/ytr+wk=; b=1bjSVny+ceNEKi 4Hfffuu6RLSAPjZay0xXc7ysGzeuwVTC4OV3wgx58mtvm4sTdc22cT9watnQrd0lM6qCDGe0E00AY GEy8CsVewMvu5H6y/ADfNDtp99JsJNqjTlwpYX3PJaZF4I4Z6hi96rCAp9SlEArBGSs9qg6CALCFL zI9E4bNV989ec0mIutch3V/a22C8wnu8t2A1G/Z0DEgMMhS77Wu6nnLQHCzE63Eu+gOlF8hQq48kg bg4x3/5snQPG3cDFjUvj+UNo9aMYkTywUZ1vdAnRHmsjb4nDSPXi0vsjw48ZioFM30Z+cMyA3Y5BE n5F9F0t/3OohIa8ckLvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeQ1j-00CEOs-VE; Sat, 01 Oct 2022 00:06:44 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeQ1g-00CEO7-Oe for linux-arm-kernel@lists.infradead.org; Sat, 01 Oct 2022 00:06:42 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 736F0B82985; Sat, 1 Oct 2022 00:06:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E6C8C433D6; Sat, 1 Oct 2022 00:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664582798; bh=6h0/WOD0NjyIuQeIvVYf0HlwwBVxyfofNLXZkKFjlLA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=dbUCXa4OTeQkpemuU+6hMqwTsiuj6DpQAwB8xx0xdcmRKagflGKWU72/y5uzOvMMf Uuz0VaojFfDG2RlJYsWZGz+eVY1FDDGXV43zb/avwCdt09vq5b05fz1t8Wys2EFZ90 qLdA6rUgqX1zyY+fHsegdMpVTtBm9ZHgPaJc/Bjgytq2B9/tavZ1JyH7bpSK8SDXu0 BFVGeeLxmYJEtyUvZdneXxpg6EF6j1YP/uqrWS55z9SL+A8VH+awMvJOBenqGth4dN RwUDU9+ar/BM0tCoh92j/5x4cBZdFqtSj/r8/1ELrtnW5eJWS13pdJLtacD939libA DM53ZKlMLIT5g== MIME-Version: 1.0 In-Reply-To: <20220914033206.98046-1-linyujun809@huawei.com> References: <20220914033206.98046-1-linyujun809@huawei.com> Subject: Re: [PATCH -next] clk: imx: scu: fix memleak on platform_device_add() fails From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Lin Yujun , abelvesa@kernel.org, aisheng.dong@nxp.com, festevam@gmail.com, kernel@pengutronix.de, linux-imx@nxp.com, mturquette@baylibre.com, s.hauer@pengutronix.de, shawnguo@kernel.org Date: Fri, 30 Sep 2022 17:06:36 -0700 User-Agent: alot/0.10 Message-Id: <20221001000638.2E6C8C433D6@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220930_170640_963871_F685C38F X-CRM114-Status: UNSURE ( 8.04 ) 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 Quoting Lin Yujun (2022-09-13 20:32:06) > No error handling is performed when platform_device_add() > fails. Add error processing before return, and modified > the return value. > > Fixes: 77d8f3068c63 ("clk: imx: scu: add two cells binding support") > Signed-off-by: Lin Yujun > --- Reviewed-by: Stephen Boyd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel