Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9711887rwd; Wed, 21 Jun 2023 10:47:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GwgCEsehd5tpiFFwcNhCPO5zFzCHtQfL67TFu44rkKVRerjGSWkREbbhofiIuHoO3xabj X-Received: by 2002:a05:6a21:78a4:b0:10e:5c1f:6627 with SMTP id bf36-20020a056a2178a400b0010e5c1f6627mr21701391pzc.21.1687369631763; Wed, 21 Jun 2023 10:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687369631; cv=none; d=google.com; s=arc-20160816; b=DCm0gGNDb1yaSozGQ7fngVksoAt17dP2g1FxwnOINXPescsE1MlRAtPnefTG69lMEu ps2jbU2SBCzt9O5F6GWFGNRJn13gpln72A//5UnHQVY+d7e5NocUMrtwTG1BYR8SOwRT JSzvjFxQywtVinKwaA5GPqNgkhriYsXUz1Q//u63KdkLGEOtixkRx5O80g1vu4KwJ+HD 5guOIWmqlw9KkzR+tXIFhoDY+DWwgAUHvt6OZwlqmvoYIxOggMCvFCHYSiNLyo0zb0P2 WpIBwIsJpqN3q2t7eQMQp+iN1SVV2k96q7ji9hb7btqgMFVD2SUlX5aZkmufqoflcu+z Pfrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=omR5+VZQPzMYEuGMkG18PpEJ8NHhyKfY3JluDKSi70E=; b=qWdtd5gUfGa5A480z1AhSiS4SK92kujjmrAO9ucz6o9qUauC4fvMjlLvB8k9Tl9F9p y4FHPmndE+g1mZC1nR6NtFBqif4jGnVAJkIlRlH1kuXOQmSkD/jMeTkwHUikYc1IPMag gBL2QE8yFMKFvX9jErkz+yM6/x5ycNHuewViCfjUmLu2inRabApBnjCII0eKmloEM/zZ Fw85AOzQv7oP0XAtuNgtPjx/4CGDI+Ylca0AT+ChHenHAHF4aWdMKlZc44GQUxGsSvFI 8fMruboTeh0vfV2gNY342Iod5GnLWuO+xKbddZHkbTFtJKe03fac8kXJcP4rruIpeNLh c4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lcSfXMrP; 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 w142-20020a627b94000000b0066682621c50si4462824pfc.216.2023.06.21.10.46.47; Wed, 21 Jun 2023 10:47:11 -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=lcSfXMrP; 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 S229807AbjFURhf (ORCPT + 99 others); Wed, 21 Jun 2023 13:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230481AbjFURhb (ORCPT ); Wed, 21 Jun 2023 13:37:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA64F1BDA; Wed, 21 Jun 2023 10:37:28 -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 85006615FF; Wed, 21 Jun 2023 17:37:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F7EFC433C0; Wed, 21 Jun 2023 17:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687369048; bh=Ofow7TPhTby78fiLDgvFRr9YEMU8BzTuo+3QlFVgybo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lcSfXMrPdldMiaJQp2qajwo1CJIGRK0b0TT5+todi+ByYMIHp/+iz46WCmF/qHTWI xeLA/2Be/C0VpWNQC03aaSP66+R7uN1lEd70E0FgyZiC66F9S1Vnfv09rXlbgxTKLU rRuw3+V6HSOVfOwvv1mjk0gkcp6X3E4945HBE+GE7Wt/yaSOjea0qmJJq3XhMl2pNE 9p4CDIaWAmGzfK+z6ChGnkxI23mNaBJyDTgF4Pe50tJ1KHE52Og6CTMW9RyFzisQEW eqbk6CdnsYIZTiPhUG9ZQJSZNyLCJxryfzW9Dx0V9SrvscZ13ATLxdTkDC1NCnnG9X vos3EDlyhA3/Q== Date: Wed, 21 Jun 2023 23:07:23 +0530 From: Vinod Koul To: Claudiu Beznea Cc: jckuo@nvidia.com, kishon@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, nkristam@nvidia.com, linux-phy@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: tegra: xusb: check return value of devm_kzalloc() Message-ID: References: <20230531073950.145339-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230531073950.145339-1-claudiu.beznea@microchip.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On 31-05-23, 10:39, Claudiu Beznea wrote: > devm_kzalloc() returns a pointer to dynamically allocated memory. > Pointer could be NULL in case allocation fails. Check pointer validity. > Identified with coccinelle (kmerr.cocci script). Applied, thanks -- ~Vinod