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 CC68BEB64DB for ; Tue, 20 Jun 2023 18:56:23 +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=ZR/69wnrUOE/FLkX7jr97THhHABoCZNJDEMsgmJ9iiM=; b=ZF3rIU5zfbDaxO WswVb+QLp4RdluP7a0duBQEEhuorJTqTXnZ01XET/ch0UIfFgvR91r8/7WJy+OwLeZtr2/5xlB8sZ ZZRgIKAi6TT5aSrzyaJ/wnUuEbn8/TollaDK139iQ8WN2Ygr+NHu/v9ORqx6hj3c8uwibHTEio8td jdnQBEsq+MWBbMlISI6Wb6c1EES+tp+PBo/fCfb7SWuwUlc+ipSAmcdAzSpyyUyKcP86djtiHd9nj AQU22vNbI+N8M1HXF1vOwW4Sfxrc6eumgpOknsP+DO/MUNzVw8ngIE8rVIM/iqt0snnHJ1//iz170 iMYn5YZoaAmkZUY8XSSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBgWH-00C7Kq-2F; Tue, 20 Jun 2023 18:56:01 +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 1qBgWE-00C7K1-3A for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2023 18:56:00 +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 767E161426; Tue, 20 Jun 2023 18:55:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDC83C433C0; Tue, 20 Jun 2023 18:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287357; bh=rRATi0gRQdLiGxIwZmdqsoUHc4v4IOP72WZEAdOcSvw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=LFYeHd3f8tclHfJmkQWaSbVXH13FIgljoZDI+ivAnwixzDiqyBIFmxQtwrwxwebE4 lyO9/MfMikC4KKFLPoMZF0sVH7d4zb4Amu/08uwO3LZjaKfy7WPGtLIK8leEBsCiFH 8qMcK0sj0xV1xrDgkjKSvSh28uG6EYWvuRWVqgtKLaQfOU6vcX/FYs1LZqBOdPoEj/ Qp3i0a3iSK/LEJjABCLrtPTfapAYEDCI3jQuhFgyexjtoyj3zTRqna38+hRliO6I4i vkckQUn+wJf4twhuCeUVLqlS/DuV/uvMsRIfTQECVXEnmoB5GhdZplAYvQEs1Sn5zB iuJKSZScYLkNA== Message-ID: MIME-Version: 1.0 In-Reply-To: <20230530093913.1656095-9-claudiu.beznea@microchip.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-9-claudiu.beznea@microchip.com> Subject: Re: [PATCH 8/8] clk: clocking-wizard: check return value of devm_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:55 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_115559_061034_3D760DCC X-CRM114-Status: UNSURE ( 6.86 ) 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:13) > devm_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: 2046338dcbc6 ("ARM: mxs: Use soc bus infrastructure") > 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