drm/amdgpu: Fix the uninitialized variable warning

[ Upstream commit 7e39d7ec35 ]

Check the user input and phy_id value range to fix
"Using uninitialized value phy_id"

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Ma Jun 2024-04-24 15:44:56 +08:00 • committed by Greg Kroah-Hartman
commit f71ef2bb69