[PATCH v5.15-v5.10] drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr

Greg KH gregkh at linuxfoundation.org
Thu Sep 5 07:40:30 UTC 2024


On Tue, Sep 03, 2024 at 04:58:09AM +0000, sikkamukul wrote:
> From: Bob Zhou <bob.zhou at amd.com>
> 
> [ Upstream commit 50151b7f1c79a09117837eb95b76c2de76841dab ]
> 
> Check return value and conduct null pointer handling to avoid null pointer dereference.
> 
> Signed-off-by: Bob Zhou <bob.zhou at amd.com>
> Reviewed-by: Tim Huang <Tim.Huang at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Sasha Levin <sashal at kernel.org>
> Signed-off-by: Mukul Sikka <mukul.sikka at broadcom.com>
> ---
>  .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 30 ++++++++++++++++---
>  1 file changed, 26 insertions(+), 4 deletions(-)

Now queued up, thanks.

greg k-h


More information about the amd-gfx mailing list