Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6669144rwb; Tue, 22 Nov 2022 17:15:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4PhItw/VtwYihYwV2VY95zB0BwabBae2lfm+JoXxRx7gbrNUg3+4RlHRLkQQ6nuJMaKeL9 X-Received: by 2002:a63:b54:0:b0:434:911a:301 with SMTP id a20-20020a630b54000000b00434911a0301mr6278744pgl.50.1669166123787; Tue, 22 Nov 2022 17:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669166123; cv=none; d=google.com; s=arc-20160816; b=Z66jZjZKX67lj72Bw5Vsoyh/IGDl1zE+9y7RsXIlkoVy5X0HOi9UmPn+stqdkzXwGC /5IA77WaKp4TxcSwYRAWBfdly66bo1ZYT2DCUwQrXONX2r1qBkVAogZ4cyWuaUyMJf5N QadwS32EpXXJ8kN5nzXNBOyHuDsJ5Uk1ozfQwx1w66UZeSEnwEHcS2u0mNOZP2VS5Dd2 Lr+LIZNVU5So+1nInlP9Af0KNY+obBwR6gk5POevtdjREyBJ5wF0HPGXm+kc2IaOgJz7 69Iv+mWr+BW8KIRXVwqdk6G1MEZaPIGqbhvhOSJ77xgqIW8DOxvK//imvogHyg80xa2x yTEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=8CrXVtbNPoRo6//6sdp2xYtaIgxcfsZN5ECNv53aqmc=; b=ggfF8jaVqEv4JQTfCS4x2J//eHY51QRVQldgA+HMLwy+L23bqW0hEgQeF/Q8CNl/eO xmKdc185C5M09GR4EgXswlGGKrRGjX4I1Bh0NiEGJhTz7Gco+mVvGQrK0IfWiNSHZz6J 7fo9ELWmfgIBzU+sjit3x81q4loHgDoBcxZRL2pbWYGxwqpFDgSjseAxwvVqf3Fg4yZj 41VHrWoGSdO9Godi2JIMgu6v7A04BMuzbI33pJkbR6OWRvx52E/vnx3bC338DR5H0h6w 4INzPIWMaBKujZRRPZ3RZ+6520R371ECK26XCPOyq6NuBT8zFzdezhDkwSglztWIw8iB RTTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBolhn3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a63e043000000b0046f4d395e6dsi15815769pgj.573.2022.11.22.17.15.10; Tue, 22 Nov 2022 17:15:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBolhn3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234681AbiKWBC4 (ORCPT + 89 others); Tue, 22 Nov 2022 20:02:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbiKWBCs (ORCPT ); Tue, 22 Nov 2022 20:02:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9349A11471; Tue, 22 Nov 2022 17:02:43 -0800 (PST) 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 7823EB81E4E; Wed, 23 Nov 2022 01:02:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14B70C433B5; Wed, 23 Nov 2022 01:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669165361; bh=8CrXVtbNPoRo6//6sdp2xYtaIgxcfsZN5ECNv53aqmc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=gBolhn3oocOYRM4P94Bd49gBwKoBeVm6tTJX4FT2D1jecyqJ4NLYERIzwObI2zVRd 4mpOvl7h116+vWNPq2FmcxoNIBZUsWTw31dKma8Z8f6KHDcxoQPKbWVG1m9I10BW6k Ep6RiTc86Bs4eJJajwZkiQRM8xi1Cyc7ICd34+ZW1nuTHogUwcNGe2gd9vFARSThSH JxILKStnl7xPamf9k3l6XA5YjRVwXGhNjwYw8s0V8GcSPGtpADumPPRBOcQ3hcb0gj FSP63rA2bqpr6FbBu5Q6xOFgH1kH/OxYgknFZYXi39PZYSOYitAY0gZTR5kmraX/f7 0KUjFzMrDhaBw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221113181147.1626585-2-dario.binacchi@amarulasolutions.com> References: <20221113181147.1626585-1-dario.binacchi@amarulasolutions.com> <20221113181147.1626585-2-dario.binacchi@amarulasolutions.com> Subject: Re: [PATCH v4 2/2] clk: ti: dra7-atl: don't allocate `parent_names' variable From: Stephen Boyd Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , kernel test robot , Allison Randal , Miaoqian Lin , Michael Turquette , Tero Kristo , Thomas Gleixner , Tony Lindgren , linux-clk@vger.kernel.org, linux-omap@vger.kernel.org To: Dario Binacchi , linux-kernel@vger.kernel.org Date: Tue, 22 Nov 2022 17:02:39 -0800 User-Agent: alot/0.10 Message-Id: <20221123010241.14B70C433B5@smtp.kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Dario Binacchi (2022-11-13 10:11:47) > The `parent_names' variable was freed also in case of kzalloc() error. > Instead of modifying the code to perform a proper memory release, I > decided to fix the bug by not allocating memory. > Since only one parent name is referenced, it is not necessary to > allocate this variable at runtime and therefore you can avoid calling > the kzalloc() function. This simplifies the code (even calls to kfree > can be removed) and improves the performance of the routine. >=20 > Signed-off-by: Dario Binacchi > Reported-by: kernel test robot >=20 > --- Applied to clk-next