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 E3A48EB64D8 for ; Tue, 20 Jun 2023 18:54:44 +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=D5ochxu4GBORCV47lW9A9vP5DG67fjuxZqdQHz9DJzM=; b=1+ol+2530B9eVo vQyFDcdM2xz+kOCCYf75dllKfdsPq7sRHpOJjUeAABGH8Q75ZobVskHCFIqodFNGmSjsAn31j9Gf3 6eT9p2eYbjxMCv2X0OcDeH5U/jqh4b5RegcyBxxiBNJwKhnf6d3yuKM6xmeO74rk/QCQ32P7lvaI3 56XZXt8TUGRNEnlUP3/I+tXQfDjjfjyPWkfiOMZzyjlNRY0wKhywjq+OfJAxTr80P0KgrpVShf+Av BLhdKFc/rVq/W8K/pWvMMZ9ZfERa6Mg6KhlbQuGrjD6H9BIwOFt/3lUEtAlsI9yRu7xIHhOg1OZAN FTHSEqwG+/sFgXe6MTpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBgUc-00C6oT-0r; Tue, 20 Jun 2023 18:54:18 +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 1qBgUZ-00C6nj-2g for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2023 18:54:16 +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 2537C6141D; 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> MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_115415_916129_944B12CF X-CRM114-Status: UNSURE ( 7.15 ) 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: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). > > Fixes: 19fbbbbcd3a3 ("Add TI CDCE925 I2C controlled clock synthesizer driver") > Depends-on: e665f029a283 ("clk: Convert to using %pOFn instead of device_node.name") > 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