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 87906EB64D7 for ; Tue, 20 Jun 2023 18:55:17 +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=odSq1C+YJGJjuOUza+uD3g+fR4HiufxZG5xVWiVa08M=; b=eecNO8J+4NQ2Nc 7o1ZCpbYkqjhyqBNz0rGMo5Ps1Tg0oOKRaW1A1tKHZTJTPDzlewEMOcxiCBFhhXPq6/GAD4lAFxUv draZa76aNxeVak4w1YbZ6sYlNv9kL3WIK5yGCn1h9HMJ/tqvsRaqGLIjbyu5NsQQRsl2UXCN7Bt8N spypbdAF4Bo7CR+SnL7iiRJFb+6Xt9TRtZFoyY08CB6ua4tzG+ffUp96KRBX8Z9T2xuEoWrrJU3SI pMmw0q5nJ8EOoOJMlmL/HxVeLhGgN+lyNhrGiYBYLFvJrRx89dA2CUhQW6qNZWRy76ElDB0PiT57f XkFZ+7F5O01xSdYt25ew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBgV9-00C6z6-2N; Tue, 20 Jun 2023 18:54:51 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBgV7-00C6y2-02 for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2023 18:54:50 +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 7D06061444; Tue, 20 Jun 2023 18:54:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0138C433C9; Tue, 20 Jun 2023 18:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287287; bh=ZYIZKFicfFpqIOEEuXOhoBEptadkESpp8fc+wtCMmnk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=mUX7HzlnzTuz2kzpMDFcHuTraYkmvlqpNRPpEXpgrirfD5GhIovaOzMuG+eslB6Ek jkkEDGoz7uMA20rPD4qgNxUyWfnNvV523djd1xx7VjH++c9YKBHoy/0EsaJWz7vke/ Mem4jUTB+u3iGp5iGCUmOxCVwcX/XfTw5oalJykLllaWbsOAMRixn7gi5JhQV3g3wD 5X3euvdiaHZeh7vGnhD3eNGy6zHXx24J6+ojsFm8wTtzH1bmmJERCGDqfkST+kZhbo XOenGZmMsQ2A/lM2uRM4JGqaZPh0hcYK9Gkr0g2OXUGXPa3AfM/COW1PZf0bYC8t5f XrdcA0YXNANFA== Message-ID: <27776482982dc2ad2017411dce645fcc.sboyd@kernel.org> MIME-Version: 1.0 In-Reply-To: <20230530093913.1656095-5-claudiu.beznea@microchip.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-5-claudiu.beznea@microchip.com> Subject: Re: [PATCH 4/8] clk: si5341: 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:54:44 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_115449_082491_C73B8F6A X-CRM114-Status: UNSURE ( 6.94 ) 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:09) > {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: 3044a860fd09 ("clk: Add Si5341/Si5340 driver") > 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