drm/komeda: Potential error pointer dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 May 2019 12:25:25 +0000 (15:25 +0300)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 6 Jun 2019 08:00:29 +0000 (09:00 +0100)
commit6d10dc617b4128c06fc2a88b47fda0a183ffe36c
treef3fe548af5dbc7df332b2bbc36034cef6ca3743e
parent7cb8bec205258601af2810f4f1998a207340e73c
drm/komeda: Potential error pointer dereference

We need to check whether drm_atomic_get_crtc_state() returns an error
pointer before dereferencing "crtc_st".

Fixes: 9e5603094176 ("drm/komeda: Add komeda_plane/plane_helper_funcs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: "james qian wang (Arm Technology China)" <james.qian.wang@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/display/komeda/komeda_plane.c