linux/drivers/gpu/drm/amd
Colin Ian King 11f874c041 drm/amd/display: fix incorrect null check on pointer
Currently an allocation is being made but the allocation failure
check is being performed on another pointer. Fix this by checking
the correct pointer. Also use the normal kernel idiom for null
pointer checks.

Addresses-Coverity: ("Resource leak")
Fixes: 43e3ac8389 ("drm/amd/display: Add function to copy DC streams")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-04-29 14:56:49 -05:00
..
acp
amdgpu drm/amdgpu: Check if SW SMU is supported before accessing funcs 2019-04-23 17:27:25 -05:00
amdkfd drm/amdgpu: get_fw_version isn't ASIC specific 2019-04-19 11:32:40 -05:00
display drm/amd/display: fix incorrect null check on pointer 2019-04-29 14:56:49 -05:00
include drm/amd/include: Add HUBPREQ_DEBUG register offsets 2019-04-23 17:27:08 -05:00
powerplay drm/amd/powerplay: enable UMDPSTATE support on raven2 (v2) 2019-04-23 12:09:14 -05:00