Skip to content
Snippets Groups Projects
Commit 270b301b authored by José Pekkarinen's avatar José Pekkarinen Committed by Alex Deucher
Browse files

drm/amd/display: fix NULL dereference


The following patch will fix a minor issue where a debug message is
referencing an struct that has just being checked whether is null or
not. This has been noticed by using coccinelle, in the following output:

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:540:25-29: ERROR: aconnector is NULL but dereferenced.

Fixes: 5d72e247 ("drm/amd/display: switch DC over to the new DRM logging macros")
Signed-off-by: default avatarJosé Pekkarinen <jose.pekkarinen@foxhound.fi>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b71f4ade
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment