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 56173EB64D7 for ; Tue, 20 Jun 2023 18:54:25 +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=EesYqmNuCchLe8IshdQn7sd0B2ICCIzN2ChdT6wA1U4=; b=Y+csZlBSUWZiYe m60+3kdgw70Lagm40ReJ7NB5VFATB+2KMd199xB7QTRqaHIjtmBy3Fj6jX0lTFTO0pDf17+U9DFMm X/rOYuEo8tVcDiaXeIn8RCBZQuNuMHYkeO1uBdSalK4GA8M6OLP+zIZpuY+AYV+B90ya60wOnMnoc IEMf3gSxA3OQoYCgzm2KH+tLmY1oo5KwdSOh0fnKtMBUSkwPB21mFVJjYQypEMUG4j4J1SlYZB95o N4bApXbGHVe3Bd1TvPINNut58eLu99U3Veul2QkcRwnftEMjw5ZfxI6IPVGTpIL8mWRTjKt/2dlkw ICVWS1cVk+cPBGmLwSSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBgUL-00C6fT-18; Tue, 20 Jun 2023 18:54:01 +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 1qBgUJ-00C6dX-0E for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2023 18:54:00 +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 F0A516140B; Tue, 20 Jun 2023 18:53:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FCBFC433C8; Tue, 20 Jun 2023 18:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687287237; bh=YGBzCoLYLJcR3RjLUJw0fAYEk/ZC/rwN9dRo76RYMao=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=NyEON1aFPXuTqKb+PU1rUbfAtO2BmQp1JjT3NG4eTSRLfmPD/gxv+TofaW1mj4zQM c+WkBpcR9lMHf07eXf0T3m/cCyd4RGk98+nPDlvO9SfKw4Ll6SI+ooBkeIXY5r6KuH elsVcc/1D3Iajs7QlsH9dyD1EXIhHrku1wJgpVUICKxAJzdnVU/uozI/oGBcqsV6AK zzm5c7bhtPKs217FLczKUQVrlFOcTZgQMLe+Yi3E3C/lNqBR46+ZYrOAQezwA4mwV+ OGsN0hm7HZu1OvNgmNzbrlcBLTLH7GiyMFuGVjxPcWBEVYwHrFNgy4+YNL8Tt95ooC wFRhcen01sOBA== Message-ID: <4287595f7f2b588fb341ff8a710b6857.sboyd@kernel.org> MIME-Version: 1.0 In-Reply-To: <20230530093913.1656095-2-claudiu.beznea@microchip.com> References: <20230530093913.1656095-1-claudiu.beznea@microchip.com> <20230530093913.1656095-2-claudiu.beznea@microchip.com> Subject: Re: [PATCH 1/8] clk: vc5: check memory returned by 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:53:53 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_115359_169943_19D6B7DF 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:06) > 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: f491276a5168 ("clk: vc5: Allow Versaclock driver to support multiple instances") > 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