drm/amd/display: Fix a debugfs null pointer error
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Fri, 27 Oct 2023 19:59:48 +0000 (15:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 14:29:54 +0000 (09:29 -0500)
commitefb91fea652a42fcc037d2a9ef4ecd1ffc5ff4b7
treeb0bb6e3aaccf2dc22cf5b6cd3cf38cf12cfeb0c6
parentf4fac4163c2f99aada9cc60292f2ea377afe6c71
drm/amd/display: Fix a debugfs null pointer error

[WHY & HOW]
Check whether get_subvp_en() callback exists before calling it.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Alex Hung <alex.hung@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c