drm/amd/display: Fix null pointer dereference in error message
authorCong Liu <liucong2@kylinos.cn>
Tue, 26 Sep 2023 05:56:17 +0000 (13:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:36:57 +0000 (15:36 -0400)
commit0c3601a2fbfb265ce283651480e30c8e60459112
tree4489f819da7a6c5934bc65b6c2be1944afff3b85
parent554340133e4f596fc40fd75a58f9cf18b6b8dbbc
drm/amd/display: Fix null pointer dereference in error message

This patch fixes a null pointer dereference in the error message that is
printed when the Display Core (DC) fails to initialize. The original
message includes the DC version number, which is undefined if the DC is
not initialized.

Fixes: 9788d087caff ("drm/amd/display: improve the message printed when loading DC")
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c