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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28AD8C41513 for ; Thu, 19 Oct 2023 01:06:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjJSBGY (ORCPT ); Wed, 18 Oct 2023 21:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjJSBGW (ORCPT ); Wed, 18 Oct 2023 21:06:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3BC7B8; Wed, 18 Oct 2023 18:06:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FFB4C433C7; Thu, 19 Oct 2023 01:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697677580; bh=64x4DMR9WJmGdd362zblo6FJofeDBwyFBwAvoTeE+tM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=H3xlOcCmbdfrlbStbX7qyC2+1tccKl62m4RuhR3aw0fTjilSG2GVcd0X525VfIZmE +xT5CC+IDOJnZgVyNv0SL3dvY6/AS85SchslrFjKl4xE+52nrmneSe0sKr9AUxcmHJ eDArIfn6EjfAKc2cfBVPe4F1iXZMzEVMI+Rz5mQXFOz5BPg/WYPEafdQom8gHDEgDr Sghg/CZnnEkVwFzXnB+0+9mirKKR+2eUoLUb+xbWwOcH2imPxClCkK1mSwCTyK9cxX kW8ZEzVkjTBUk9vmkCUsS4coo7tmQhD01QxDXO3odcq4XT8UIXzkdPY7pg7J6qEiAo kAl1oCjttcG6g== Message-ID: <0da1eb8c9b8ef294309c1027896c409b.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230923133127.1815621-1-j.neuschaefer@gmx.net> References: <20230923133127.1815621-1-j.neuschaefer@gmx.net> Subject: Re: [PATCH] clk: npcm7xx: Fix incorrect kfree From: Stephen Boyd Cc: Jonathan =?utf-8?q?Neusch=C3=A4fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Michael Turquette , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org To: Jonathan =?utf-8?q?Neusch=C3=A4fer?= , linux-clk@vger.kernel.org Date: Wed, 18 Oct 2023 18:06:16 -0700 User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jonathan Neusch=C3=A4fer (2023-09-23 06:31:27) > The corresponding allocation is: >=20 > > npcm7xx_clk_data =3D kzalloc(struct_size(npcm7xx_clk_data, hws, > > NPCM7XX_NUM_CLOCKS), GFP_KERNEL); >=20 > ... so, kfree should be applied to npcm7xx_clk_data, not > npcm7xx_clk_data->hws. >=20 > Signed-off-by: Jonathan Neusch=C3=A4fer > --- Applied to clk-next