linux/drivers/gpu/drm/amd
Colin Ian King a97567a06c drm/amd/display: fix a potential null pointer dereference
Currently the pointer init_data is dereferenced on the assignment
of fw_info before init_data is sanity checked to see if it is null.
Fix te potential null pointer dereference on init_data by only
performing dereference after it is null checked.

Addresses-Coverity: ("Dereference before null check")
Fixes: 9adc8050bf ("drm/amd/display: make firmware info only load once during dc_bios create")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-22 17:25:33 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu/sdma5: fix number of sdma5 trap irq types for navi1x 2019-08-22 17:25:01 -05:00
amdkfd drm/amdkfd: Make deallocate_hiq_sdma_mqd static 2019-08-22 17:25:10 -05:00
display drm/amd/display: fix a potential null pointer dereference 2019-08-22 17:25:33 -05:00
include drm/amdgpu: Fix a typo in the include header guard of 'navi12_ip_offset.h' 2019-08-21 22:16:55 -05:00
powerplay drm/amdgpu/powerplay: remove redundant assignment to variable baco_state 2019-08-22 17:25:21 -05:00