amd/display: Fix potential null dereference in dce_calcs.c
authorErnst Sjöstrand <ernstp@gmail.com>
Wed, 8 Nov 2017 21:47:06 +0000 (22:47 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Nov 2017 22:30:11 +0000 (17:30 -0500)
commitf368d3bfde225199eef2216b03e0ba4944a3434a
treed4aeae53b3ec20afe0c996d2a7d03a6f5c5a4df8
parentd83e87b239ec42eeda34850da342b3d8f104812b
amd/display: Fix potential null dereference in dce_calcs.c

Reported by smatch:
bw_calcs() error: potential null dereference 'data'

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c