Skip to content
Commit 44407010 authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Alex Deucher
Browse files

drm/amd/display: Fix possible NULL dereference in dc_dmub_srv_cmd_run_list()



We have a NULL check for 'dc_dmub_srv' in dc_dmub_srv_cmd_run_list()
but we are dereferencing it before checking.

Fix this moving the dereference next to NULL check.

This issue is found with Smatch(static analysis tool).

Fixes: e97cc04f ("drm/amd/display: refactor dmub commands into single function")
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8fa76350
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment