drm/amd/display: Fix use before NULL check in validate_timing
authorHarry Wentland <harry.wentland@amd.com>
Fri, 10 Nov 2017 17:11:44 +0000 (12:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Nov 2017 22:56:19 +0000 (17:56 -0500)
commitb001965d4eb5e4c0e3de7dc6dce1d45ca25232a7
tree17dc9a67a157a772f7fd9d4845dc5d20978475ca
parenta8f9764731968d6a63f6f98c5b0d4e7a0e4154e2
drm/amd/display: Fix use before NULL check in validate_timing

Found by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator.c:1124
dce110_timing_generator_validate_timing() warn: variable dereferenced
before check 'timing' (see line 1116)

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c