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 86A18EB64D7 for ; Tue, 20 Jun 2023 18:56:12 +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:Date:To:Cc:From:Subject:References: In-Reply-To:MIME-Version:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qADtMMaBX9NPdRc1f5f2u9E0ZN1uBEhu1otomGKF6Rw=; b=ExbY+ohczEQMcV S/ie1rppUdygJX0UzbpdBnJfQSaou4p28voZZnJJ6n40AQoVuVaoloTWoYblTbf1cHvmgvFkX06ol Gc2LbWd3KJ0P/vWke7DbCaiUoWLgY7MV+/H53829BfnBActGpZ134ZaswfUKPIloDvC1VNlVqb8Gz 1L8cCs0RJnyrGERashavUBrm/lAs9GUmyc/f5DSoVF6AK6NyIBGAJcQGwRpa6dosuCXAiKbW/bWyT 91taN1lwZgwBXBx7WZuG6AjmyPl/5xv2R1m99f5gMQT8pqzRA8kchst9ALc2szqJ7sy/jpC+ZpuTT 242H0at7DKV2LIWg+ZNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBgW5-00C7Hh-2j; Tue, 20 Jun 2023 18:55:49 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBgW2-00C7Gl-27 for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2023 18:55:47 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2CFB2613E2; Tue, 20 Jun 2023 18:55:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82C56C433C0; Tue, 20 Jun 2023 18:55:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287345; bh=DJtxnLa8T0QvZ3FOKY+0DYUsHOygwlAJ6pFSsoXj3Tk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=W2FdW9e/CIFM8QuKwMX9ikxmXFexPjQDNCzbdbsRGYcmoQ+VrO9CYSKjEYVASxzmZ Cr57mvFn2ZwRsX+22s1i0zWpVS+Vu9X7gg+CIIJCOjeOnJGXd0+zgrsMAx5YEZIdcr lEt2pDCYqFRa/z92QlBzGv9ma9mqdZXzZSgw4HgSKi26rqtrn3MxwyZ44REfYJuS7x y5AtAzHbCpKQODl2IgJRBrtiGsm921AO4g0H82lLUJwPg+WWJbKDJ1uaB1S1k1pc5a IA+S6Vs4qakUGba77X8JXc76urO3+7UvmTKLfAovHKu2GwE72F3ZjZEwxx2i+Qrejo kBHgkTwgBULWw== Message-ID: MIME-Version: 1.0 In-Reply-To: <20230530093913.1656095-8-claudiu.beznea@microchip.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-8-claudiu.beznea@microchip.com> Subject: Re: [PATCH 7/8] clk: ti: clkctrl: check return value of kasprintf() From: Stephen Boyd Cc: aford173@gmail.com, mike.looijmans@topic.nl, robert.hancock@calian.com, shawn.guo@linaro.org, fabio.estevam@freescale.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Claudiu Beznea To: Claudiu Beznea , kristo@kernel.org, luca.ceresoli@bootlin.com, michal.simek@xilinx.com, mturquette@baylibre.com, nm@ti.com, ssantosh@kernel.org Date: Tue, 20 Jun 2023 11:55:41 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_115546_742565_6F9B2C31 X-CRM114-Status: UNSURE ( 7.30 ) 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 Claudiu Beznea (2023-05-30 02:39:12) > kasprintf() returns a pointer to dynamically allocated memory. > Pointer could be NULL in case allocation fails. Check pointer validity. > Identified with coccinelle (kmerr.cocci script). > > Fixes: 852049594b9a ("clk: ti: clkctrl: convert subclocks to use proper names also") > Fixes: 6c3090520554 ("clk: ti: clkctrl: Fix hidden dependency to node name") > Signed-off-by: Claudiu Beznea > --- Applied to clk-next _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel