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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 90EB3CE7A94 for ; Thu, 5 Sep 2024 18:49:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C5EC110E93B; Thu, 5 Sep 2024 18:49:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wY1BaZq7"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id E636E10E718; Thu, 5 Sep 2024 07:40:34 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 3BEEFA44304; Thu, 5 Sep 2024 07:40:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C745C4CEC4; Thu, 5 Sep 2024 07:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725522033; bh=PZJmqlHpJ1uU+ASFJIpncqC9uV3uvVokLmZ+DOZ31vY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wY1BaZq7EaV2nxp/Ky4u1EjnAofwymLmYwxfNFMzbKe0jbHCKfdS8gsQnzSNvxLBw PumHeZzyspeIqGIDgjb4BCQ/0o2i9Hx1hQmo8m8P4UXCskEjO3NFFDypxbP6bOCSaO tx5sTpSbitonzYibe/kA3nVEGUcVkW8snJjYW0Ms= Date: Thu, 5 Sep 2024 09:40:30 +0200 From: Greg KH To: sikkamukul Cc: stable@vger.kernel.org, evan.quan@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, Jun.Ma2@amd.com, kevinyang.wang@amd.com, sashal@kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, ajay.kaher@broadcom.com, alexey.makhalov@broadcom.com, vasavi.sirnapalli@broadcom.com, Bob Zhou , Tim Huang Subject: Re: [PATCH v5.15-v5.10] drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr Message-ID: <2024090523-collide-colonize-d914@gregkh> References: <20240903045809.5025-1-mukul.sikka@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240903045809.5025-1-mukul.sikka@broadcom.com> X-Mailman-Approved-At: Thu, 05 Sep 2024 18:49:02 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Tue, Sep 03, 2024 at 04:58:09AM +0000, sikkamukul wrote: > From: Bob Zhou > > [ Upstream commit 50151b7f1c79a09117837eb95b76c2de76841dab ] > > Check return value and conduct null pointer handling to avoid null pointer dereference. > > Signed-off-by: Bob Zhou > Reviewed-by: Tim Huang > Signed-off-by: Alex Deucher > Signed-off-by: Sasha Levin > Signed-off-by: Mukul Sikka > --- > .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 30 ++++++++++++++++--- > 1 file changed, 26 insertions(+), 4 deletions(-) Now queued up, thanks. greg k-h