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 38290C54EE9 for ; Tue, 27 Sep 2022 10:41:32 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZQJHWyASkdy6ASSGUXBvE1amJOpBW8O5RtqrtKHGGNo=; b=4NoCcd9+tetyE5 +b7nj1Xu0EmNtkuZ/UzYQpee7a1eW1eGQ0nOkaEfO0FbK9XKl8ujPX5tBbiASF8B8kWhei9tDVo1d Rt1qlcTN27LwC6fNOuYTdIcKBTURWanYFhJ9JUymaCDqFCaC9w4uYJEDVeHkVDEBQmGFk+Ie+IQxz j2lHgbQAq/5798Pu5K5Raxtzlx7N7CevsqS6jvqQ5Jv82EcSv5LUV1FA/oK5ifAA4i6PHBdSosFl0 /xLU8JIm9JGaQ0wq34HhndCJ+DsIQyZqaJGJS2I7T0zbWe2gl84suzwbZzJ8/0U3rDouEgNZak6qT 3CvsBzq4QlhnGWr2vZ0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1od80u-009uDs-G0; Tue, 27 Sep 2022 10:40:32 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1od80R-009tvm-2k; Tue, 27 Sep 2022 10:40:04 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3C00C660225F; Tue, 27 Sep 2022 11:40:01 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664275201; bh=nZySNIOSSCHQniyQM0ZF2KCCHyUbR8adLdjAyM2pNus=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N2gvBzgoKqiDwhjGkqJL/lQwjftXO4SMlBxA7tI7+nAxVphpicb9eYLAf9RtN0HGA kJQNHjTOcomqHrLboHsKAjt0qbZ6GsaaxtUo2PV6iZDEN1F4NPMQemjgBIXGbwM/D8 goszDPQhWBRwKQxZml8shk21lAhyOJQ1ZlwF2SDnieYHqxvwz39U29fqfttFZNQaVG 0O+GVJsVdxFFfmPiQuXObSFmDClleIxVHFMgZte7vBh4rU9jUFN0wdQt9imd3j/2Wj jCiW7PhiATybdkBadXx/he+7sV2Ci2RD7KZvNj44gww7gY7wi6QRMeXZQVALALlluS 8S282qw5ufNlQ== Message-ID: <48eac669-a407-e673-93fc-c7e6ef15110a@collabora.com> Date: Tue, 27 Sep 2022 12:39:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH 1/6] clk: mediatek: fix unregister function in mtk_clk_register_dividers cleanup Content-Language: en-US To: Chen-Yu Tsai , Michael Turquette , Stephen Boyd Cc: Matthias Brugger , Miles Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220926102523.2367530-1-wenst@chromium.org> <20220926102523.2367530-2-wenst@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20220926102523.2367530-2-wenst@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220927_034003_307626_B8FE2568 X-CRM114-Status: GOOD ( 10.67 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 26/09/22 12:25, Chen-Yu Tsai ha scritto: > When the cleanup paths for the various clk register APIs in the MediaTek > clk library were added, the one in the dividers type used the wrong type > of unregister function. This would result in incorrect dereferencing of > the clk pointer and freeing of invalid pointers. > > Fix this by switching to the correct type of clk unregistration call. > > Fixes: 3c3ba2ab0226 ("clk: mediatek: mtk: Implement error handling in register APIs") > Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel