]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:14 +0000 (15:34 +0200)
commit69a441473fec2fc2aa2cf56122d6c42c4266a239
tree2fa2ab2e65f4b3cad126d7f51dd492247b536a3c
parente1ab38e99d1607f80a1670a399511a56464c0253
drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr

[ Upstream commit 50151b7f1c79a09117837eb95b76c2de76841dab ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c