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 897B5C433FE for ; Sat, 1 Oct 2022 00:08:09 +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=G9dL4tIpSdUH8vs6F49g0NtW5CX/ByKXENt0cdp7liQ=; b=14heb4vAdyzJbj ZisEDK9//KAYtOu4GNyHOXetxamPwWHpgtdkLEKLI7Rh/W05PEstthexEE2+v5Nh9AchSYFCEHA6M sYHfREr7/fCvT9hKI0dP8/l385VekVFVafB+FA6wnn7KOW2YpW9aVUpMnDCcZ/vjZMowYoqBE04UB WJzpf9uAPBHm/VSHsd4Ws8GHpBvQlXTxT03POR0up5tnxDVtyy+K4MrGwrAImzwXEoPbqf1wMVe1W 6fQ64zDZPkoUofky8CQtNYCDyGI9SUSqm9hu2rIvz1hS4gZ0/fSPNEc/LaGbxJXeF6OBK3uxXjLew Jb4YOqSZeGd32kB3l1vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeQ2F-00CEWR-2q; Sat, 01 Oct 2022 00:07:15 +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 1oeQ2C-00CEVf-Kv for linux-arm-kernel@lists.infradead.org; Sat, 01 Oct 2022 00:07:13 +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 49D9EB82A43; Sat, 1 Oct 2022 00:07:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2603C433C1; Sat, 1 Oct 2022 00:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664582830; bh=Z2+zNHYiiIkWCAkYKhNJGpAi25tc19KhEHaBUIEP4to=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=WlPT43bZju4hny7sxxb4UV5mSV4+U2/ZYcFdaDxDI+SsZPpyMpznsktbXFGtcdal+ PUcS+T64XQVdP2oARoNC6hyNHK91hyOw/YAQVPVCNufDpyZ0j1vb7RFFGW4ECyUUEm Uzhe5tQlqHC95b6OmBSso3DUJtF4vizW3TD8WlP46nE8rFX/uQYceK/Ds0jWAb9gnv Lkh9izIXTegMI2NnvUaDP3bmQ8xf2yTlzGpvdgEqFzvHGDvaF4K94MK+BL7GslN2MN GiWFNh8FIzwPaFEq3mtY+N7sD94vjRgkxfsrCf36rXOOiM8lr1H3q6p4SyhZsBUO34 ZP+oCPleaGemA== 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:07:08 -0700 User-Agent: alot/0.10 Message-Id: <20221001000709.F2603C433C1@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220930_170712_855561_5BD03136 X-CRM114-Status: UNSURE ( 8.36 ) 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 > --- Applied to clk-next _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel