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 3D682EB64D7 for ; Tue, 20 Jun 2023 18:54:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjFTSyS (ORCPT ); Tue, 20 Jun 2023 14:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjFTSyR (ORCPT ); Tue, 20 Jun 2023 14:54:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90822170F; Tue, 20 Jun 2023 11:54:15 -0700 (PDT) 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 21D026142C; Tue, 20 Jun 2023 18:54:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D024C433C0; Tue, 20 Jun 2023 18:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287254; bh=4OvDYNcctgPNI65niarqagPhQUeyghhQGy8Wl/HGOHs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=o3exkr7kbs8vnxkDeI/t2cY/y4iHTDlmjuImNQq9/uyaeR4J39+DlhswhgnuttLWm OOpSFGahrJ7axYnOyp3KDK0KPH2H+jzOHGgnxu9yMWNz3WL83fBF8kQ5GNsbJf9H9U GydJKEsi9RpvQwCvgNrif4J9xzIA8s5U/PgeCGug3siNaTP0/z1FIdUgQXQQmXRT0c 3O5jfrWxCN91IKqwEhLQyoobiyMVttnfzhjgTq2vg6c9NFwKiK7o9/FUl58+GcMqIG eRLmSyq1thL3S39gKbt7cXGtK3sQiwVBERaVcOqtWitGJNLi4JHE/24C1SsXqr5/6p uiN/8KTufEq5g== Message-ID: <63e7d838940855160abdb87f236199be.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230530093913.1656095-3-claudiu.beznea@microchip.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-3-claudiu.beznea@microchip.com> Subject: Re: [PATCH 2/8] clk: cdce925: 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:54:11 -0700 User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Quoting Claudiu Beznea (2023-05-30 02:39:07) > 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). >=20 > Fixes: 19fbbbbcd3a3 ("Add TI CDCE925 I2C controlled clock synthesizer dri= ver") > Depends-on: e665f029a283 ("clk: Convert to using %pOFn instead of device_= node.name") > Signed-off-by: Claudiu Beznea > --- Applied to clk-next