Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8239474rwd; Tue, 20 Jun 2023 12:09:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TzYzGLuqJTHZaXVIR1HSfQudXAZokhdY/Mh6hNVz9i42V3hX071Efa4Jq2Y2HoU6EMuA4 X-Received: by 2002:a17:902:d2ca:b0:1b2:5070:c1c9 with SMTP id n10-20020a170902d2ca00b001b25070c1c9mr9984280plc.20.1687288190390; Tue, 20 Jun 2023 12:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687288190; cv=none; d=google.com; s=arc-20160816; b=beJchHXaZRxTle9KRNq7hDOQqqmymOTgLUojhHmTB8RPkNp6SPi4Lw46m5Kg2zBkNG 3odC+VyT1abU6wjOSfOry2+NiONw4xG8vf9gGX99Wm8Lz/hW20jMr2f2xNQwHNICjKgF 2qLppKRB5KNy+ET8GjphwnMwuLCL4DeYLL0otZdOChOwIImP1ob8RwLw0a6vj5PtKFBH bpQCrpCuAETAq9ka+gmcoaRoonhzp8hk1Y+v2IIhazAJ2MW0U69oXT9UP3R87Qlz5akN ZxnxUeDpurdEDO9thx+8HOcaQslse5SXT2jYD2NafQG4C7lShiFfohMQiJe67646dnJJ hyvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=4OvDYNcctgPNI65niarqagPhQUeyghhQGy8Wl/HGOHs=; b=CWcMGXersZrJLA9x0yTJq2SleKE/nb05n811v6iKSZw0b3ZH1J8S6vEAMQVZOC7Oej 85m5SnWSQG6MrX98x7WGO+caa+wf7olmhTVmLVYrwOtkUSjYwioNOx6eydqGd5gMMe0r 6+4AyMiJUfjxUMcDG1TQWzoeUXySqFV4zRLLVHU8wtbOM4eYjpM/MT/q+ALAmnxvi+Qk DrNu4fJuyr+opvt7rLysUEnpQe18gRg+PEWL+2GfcHgdZ0PTwAeTBl5R4zVW9GxOacd5 ZmERy1pQwQHucGyE8FDX1n8yKRnDKYP1XHA0+HzmuNq87Pqew1l9dzAoKCjXO5oQE2iq 96Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o3exkr7k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a170902e88f00b001b678a193cfsi2722558plg.123.2023.06.20.12.09.35; Tue, 20 Jun 2023 12:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o3exkr7k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbjFTSyT (ORCPT + 99 others); Tue, 20 Jun 2023 14:54:19 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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