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 A135EEB64D7 for ; Tue, 20 Jun 2023 18:55:54 +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=nDcVbRVms8im7OUpIHbW3vG2TUXZDHiPXDIudsBnaM8=; b=LopLWBlR6srNX4 EGU1vnFQd7FtjPt7YXSSs/J+FdCriCUHWB2hl/WO3FAm2qd+nSDAHQQIz24HknT35oS59JyG/6HTw h1954aYyIfNiu2CCO2uRxceo5PbNRd48sLPE1PRWqxd7CUdnSTBT3GaGBQYkwV41Cu0v6/c/Cw4aq nGOPv//03j4kqSpK2TNFRWxsUOzhdTlAqqwqA/cP5mtyyS1Bwlo/gYXNdv/juz7fvX7k/VoP8H0bg 5gdJzDPaSAEOPXuli7ngQM5843Luu3k/sLkKFxHuG+rNQ7+EOVLkbvdz71mDmvN2pfLcPiWTwJxml 5aKPpuzZ4P4ZhDUUIQqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBgVn-00C7Cn-2n; Tue, 20 Jun 2023 18:55:31 +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 1qBgVl-00C7Bw-0e for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2023 18:55:30 +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 ADC7E613DC; Tue, 20 Jun 2023 18:55:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12034C433C9; Tue, 20 Jun 2023 18:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287328; bh=QlAJCzL8BTX4LVXa3CW+wyvWD3oVtqaBOjKNeo4V16U=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=RPnuGFMsLHFKTQ2T8otYCZkaiPaJGNXKB0Ij3S/nYYp88feMeE3I+iHttKcwp4lUY 4LbmOuCtyfad44+gU/FTZLOF/Ypmjp3BzPg4yMYUpaeobs1jXk3wwkEys0w2S1IxUN 7YTZuC8yYeiQ7uFeZO6EaDMHqXLZSRK6trjsyQEcqTeACvo8FdOX5bWdRRpdZVkIsw pyWSa9L8rpt8qBLiZFTRRZAJO0ZdAO0fg2ZJ0HIpTAYeM/BxhDQjslYiGNwS3RI0XX zBcM17LHdBwrc9PSBZ1s9PH4VM2LFVFj+d/GXqF6QjCwFmaY1xbZyYqXu9rYVC9B5R XHzqZQc+6avlg== Message-ID: <27b86576fa46cb17a904e6ccc66117be.sboyd@kernel.org> MIME-Version: 1.0 In-Reply-To: <20230530093913.1656095-7-claudiu.beznea@microchip.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-7-claudiu.beznea@microchip.com> Subject: Re: [PATCH 6/8] clk: keystone: sci-clk: 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:24 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_115529_287391_4853FA8F X-CRM114-Status: UNSURE ( 7.02 ) 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:11) > 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: b745c0794e2f ("clk: keystone: Add sci-clk driver support") > Depends-on: 96488c09b0f4 ("clk: keystone: sci-clk: cut down the clock name length") > 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