drm/amd/pm: ensure the fw_info is not null before using it

[ Upstream commit 186fb12e7a ]

This resolves the dereference null return value warning
reported by Coverity.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Tim Huang 2024-08-07 17:15:12 +08:00 • committed by Greg Kroah-Hartman
commit fd5f4ac1a9