summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/arm/malidp_hw.c
diff options
context:
space:
mode:
authorCarsten Haitzler <carsten.haitzler@arm.com>2020-11-27 11:00:54 +0000
committerLiviu Dudau <liviu.dudau@arm.com>2020-12-18 16:35:53 +0000
commita24cf238c771a1d3f0dc68b9f2b62c6d23359026 (patch)
tree869eb17ca6547efa7da1082cd4d6bc7843b8f995 /drivers/gpu/drm/arm/malidp_hw.c
parent8e8fbfc682481b7f814985341020129161afd9de (diff)
drm/komeda: Handle NULL pointer access code path in error case
komeda_component_get_old_state() technically can return a NULL pointer. komeda_compiz_set_input() even warns when this happens, but then proceeeds to use that NULL pointer to compare memory content there agains the new state to see if it changed. In this case, it's better to assume that the input changed as there is no old state to compare against and thus assume the changes happen anyway. Signed-off-by: Carsten Haitzler <carsten.haitzler@arm.com> Reviewed-by: Steven Price <steven.price@arm.com> Acked-by: Liviu Dudau <liviu.dudau@arm.com> [Applied small spelling fixes and fix suggested by Steven Price] Signed-off-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201127110054.133686-1-carsten.haitzler@foss.arm.com
Diffstat (limited to 'drivers/gpu/drm/arm/malidp_hw.c')
0 files changed, 0 insertions, 0 deletions