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 455CEC433FE for ; Tue, 29 Nov 2022 20:12:34 +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=LcOgaMZKr0+X/ffN7E1+GmlQrZ1rc8IVWUrOGI0D3cA=; b=ARLCX+oogB6Qd9 mbP8xh7He0aYB3MNGai8Kl1TOoLsVI6SjW4CJIiuNXYatWtdzVRNy7UXgPQEZtgl4yo5lHRMFBu4K Et1QcJbovua0oCRp63jrksr/UoCu/IjhG1k3IspuwbAqk4vFakwvJiKZaUfGx65NzmlVoIU8rDDXk mItp432R2RXedyoDOC7T/WP5CpThEukis4L0iCw5XB440JyuJ34/BbxZ0Y+kEQ6Ro3oz3xadCGIwj vII7DGRPfebsfSymYdNmk1KPV8N718YdB4i803D6e2pBOp3L46Ln3YDkJw3EoFnZLpBdfZHvPAWDW cj1a2Fzrw3qNo3occkpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p06x9-00BFG3-Ph; Tue, 29 Nov 2022 20:11:39 +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 1p06x7-00BFFJ-3m for linux-arm-kernel@lists.infradead.org; Tue, 29 Nov 2022 20:11:38 +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 8A0D3B818BE; Tue, 29 Nov 2022 20:11:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A651C433C1; Tue, 29 Nov 2022 20:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669752694; bh=dph3upGKfilqBGNmUDKpNEKohIKxkbco5kqQPpoV+SU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=qpq4mLjJPieESlUEVylekdW2r+yklzQ+ZP7dGIz5UmOHHMsBK0XAai0h0gygR90kr c99uJI0dPFLRHtt4wp3Zawf+q/D3aj5aC4EY5DsiGHNDe2Ohgow8fAbbVjg8OBbdAp DOx4G+QdLTCeLRJhEZzPnpL8+rpuSvl0C1HpWoH0rwhMCcXOCdIDLXgLSOGjGyQoWK C6HH8sv7RLjIecl4cPy0qXwuVYUeJyGd1Le1bCNo7rrh6kYE5iFtBUWqNVoMDxyzlQ LSrrX7e1RPLWEOosIzhKQQvGY5A7xCXnCU6huLmykQDaPvL1ZDx0g+dI1MDnbGbZY+ pXqgs9q2Y7NwA== MIME-Version: 1.0 In-Reply-To: <20221122152353.204132-1-xiujianfeng@huawei.com> References: <20221122152353.204132-1-xiujianfeng@huawei.com> Subject: Re: [PATCH] clk: visconti: Fix memory leak in visconti_register_pll() From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Xiu Jianfeng , mturquette@baylibre.com, nobuhiro1.iwamatsu@toshiba.co.jp Date: Tue, 29 Nov 2022 12:11:30 -0800 User-Agent: alot/0.10 Message-Id: <20221129201134.3A651C433C1@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221129_121137_323503_3C41AFDD X-CRM114-Status: UNSURE ( 9.69 ) 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 Xiu Jianfeng (2022-11-22 07:23:53) > @pll->rate_table has allocated memory by kmemdup(), if clk_hw_register() > fails, it should be freed, otherwise it will cause memory leak issue, > this patch fixes it. > > Fixes: b4cbe606dc36 ("clk: visconti: Add support common clock driver and reset driver") > Signed-off-by: Xiu Jianfeng > --- Applied to clk-next _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel