Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp130481rdb; Wed, 21 Feb 2024 20:52:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWPUYU3u/pJZ91D+dmaAWM9RwNWiR4DQFLNnXxSr5vKvpiWuzcyQiGT/JO9NY3TsP4/AjQIpqovgjLjnwXHk4WPaCAD6M4SSYq65X/ZNg== X-Google-Smtp-Source: AGHT+IFnyF4zvpOvQX1nUV8m0m18nD7pYATXY58iQRB67Xt+BkJ0Yn98PRITqeubu3GZRxGrWWUt X-Received: by 2002:ac8:4909:0:b0:42d:f7d0:b6cb with SMTP id e9-20020ac84909000000b0042df7d0b6cbmr13097411qtq.51.1708577534449; Wed, 21 Feb 2024 20:52:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708577534; cv=pass; d=google.com; s=arc-20160816; b=LwEq9sXVQAA/UrS+Tkz1sNUzLDmnbTDxA6r9QXPhBmAiIOR5J+qNWOw3fisI6w+4MP Cyij2Z+6Sr0zecq9NB+WQSbGPa1QqdHBF2MKRgp3b7KegNKshbW06HPjmr5H48sC0qMS 1BU/wOYnDj647DcXqEOknKBEjNy16wYJdDczRqizrGkyRPQvD5PvMhF4EXE3euIunNnS AMhKhTybWX7/xKD9HxSIvWa3snBCIyVV5nx6wgOU0UJRvtllpJVVYMN3p9UVKmI6wOii cXE9IPTpUq8+m8IonhvkwTbnOgnW+wN/7odacrcxM0VT96ENZjKrgkCD6E9Wfd2iEQMJ JcVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=3rjrUjwhsSCmh0RJibzoaF4JJV18xHOBdy6qFbX+vbM=; fh=9K08OzccwJTtv3IAdgzpyim1GkqrRcpRFEOwVWBwqjA=; b=N6jX6hqU+n1/q1HAs6R3ruekGrwe6Ic/omuEoUdvj12cMlOCxwI8N3CJFsCT5j8xI+ YllKhWjH8ZvL/WNhgLW1K84NRwez/kHCwTfItttvhHqzh3ScaAeDc6d7IBnq9KjtgmZT V3boFEA7cgmuJNeZNf2SYJRPFXZEENyMh7wIbAV/6G8TIrlU2QQDLxpNooiKzNWU0iOW dMs26cpN9wQXdnBHiNsOMkRaGk67fq8E9WmI8bKyShLRu+GXMWqlY3lhp+SN1r3kjjl0 mCEPSIcxCwCNJiaAJCXwacHzpi5EVGDC8UjA8rESTOVIP0IQjZfQ/pQKUcBJigIR9HLr TD3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q4KEjPM0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y17-20020ac87091000000b0042dc9553314si12109146qto.244.2024.02.21.20.52.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 20:52:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q4KEjPM0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2CFD51C21654 for ; Thu, 22 Feb 2024 04:52:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6093F53AC; Thu, 22 Feb 2024 04:52:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q4KEjPM0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83FC21FA2; Thu, 22 Feb 2024 04:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708577526; cv=none; b=euX2l98+VGoAu/5nMLSxStXLrDXVtMwq1GTHcyYVCOTAn5IXrok1F4ACTnkKDAg39q5NQ4yumOViAzt7tIGW0PxtJbm5cy3KzJPFGXV0CCMeYn9VIFMgKynaRgNmllfpyBYfGV+wzCU4w5Tkj96iAVNMLd49IXE3lZ0TZWyP6VU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708577526; c=relaxed/simple; bh=3rjrUjwhsSCmh0RJibzoaF4JJV18xHOBdy6qFbX+vbM=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=i2C6Bveo7VuLP6m9aY9SwXEdQB4hbr3uAzjPZKiQCG5nLLsX/d8euX4q/VRtylfbpiMeXTEKckywI/D9GjLGtHueZGqgBwl4FuxZvWXuAAkXWhWMQarRR3DKcKw9ZYeLIb91lsH7bdmE9wZt12CfXrTqBB5qk7n4jctUAIfQdYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q4KEjPM0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E4BAC433C7; Thu, 22 Feb 2024 04:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708577526; bh=3rjrUjwhsSCmh0RJibzoaF4JJV18xHOBdy6qFbX+vbM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=q4KEjPM0AfWmpL0qKK2Uk86RAnIqaI55UmqGSw3s8AKJGsNCg4RP4WMPTqDrr8FyX 515DOgYFoWs1wIDqmqt2aPPpXJksI+L5Rh/x57IdgBmPeeXtyQBhLladlh/WNS8/nN NKRmr06cY/+WjMLly2Cc7VXRxizXlHkH6CJl0aorcZJ8VXKb2RBudoD28jwYhbySeC CS+tPC/dU4Ospsp0VTtNxKPiFLSpq64Cir0GKoi+I5YwBxuvCVP5naXWgx35mWij4N cFyupe8IVBCkBkuGChsGbaND3a7tss645ijw+5IyVwoQ6XQiUZniGa99zVPPKhoqz5 6lz4s29rHQ1Pw== Message-ID: <050cb3a63e606d40d32da0a1d4c3a61d.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <2c553c2a5077757e4f7af0bb895acc43881cf62c.1704616152.git.christophe.jaillet@wanadoo.fr> References: <2c553c2a5077757e4f7af0bb895acc43881cf62c.1704616152.git.christophe.jaillet@wanadoo.fr> Subject: Re: [PATCH] clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe() From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org To: AngeloGioacchino Del Regno , Chen-Yu Tsai , Christophe JAILLET , Matthias Brugger , Michael Turquette Date: Wed, 21 Feb 2024 20:52:04 -0800 User-Agent: alot/0.10 Quoting Christophe JAILLET (2024-01-07 00:29:28) > 'clk_data' is allocated with mtk_devm_alloc_clk_data(). So calling > mtk_free_clk_data() explicitly in the remove function would lead to a > double-free. >=20 > Remove the redundant call. >=20 > Fixes: c50e2ea6507b ("clk: mediatek: mt7622-apmixedsys: Add .remove() cal= lback for module build") > Signed-off-by: Christophe JAILLET > --- Applied to clk-next