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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE17FC7EE23 for ; Wed, 31 May 2023 04:12:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232120AbjEaEMO (ORCPT ); Wed, 31 May 2023 00:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231402AbjEaEML (ORCPT ); Wed, 31 May 2023 00:12:11 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 699B6D9; Tue, 30 May 2023 21:12:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 7405880FC; Wed, 31 May 2023 04:12:07 +0000 (UTC) Date: Wed, 31 May 2023 07:12:06 +0300 From: Tony Lindgren To: Claudiu Beznea Cc: mturquette@baylibre.com, sboyd@kernel.org, luca.ceresoli@bootlin.com, nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, michal.simek@xilinx.com, 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 Subject: Re: [PATCH 7/8] clk: ti: clkctrl: check return value of kasprintf() Message-ID: <20230531041206.GF14287@atomide.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-8-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530093913.1656095-8-claudiu.beznea@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Claudiu Beznea [230530 09:41]: > 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). Reviewed-by: Tony Lindgren