]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr
authorBob Zhou <bob.zhou@amd.com>
Fri, 31 May 2024 07:01:22 +0000 (15:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:25:13 +0000 (11:25 -0400)
commit50151b7f1c79a09117837eb95b76c2de76841dab
tree26cd7e0ea0cbca566bebe824ba905ae0cdf4d505
parent45bd39fb3bf677b2bde8d7b36d85b3524dde0014
drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr

Check return value and conduct null pointer handling to avoid null pointer dereference.

Signed-off-by: Bob Zhou <bob.zhou@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c