drm: fsl-dcu: Fix no fb check bug
authorMeng Yi <meng.yi@nxp.com>
Wed, 6 Jan 2016 04:12:05 +0000 (12:12 +0800)
committerStefan Agner <stefan@agner.ch>
Fri, 26 Feb 2016 00:13:16 +0000 (16:13 -0800)
commita36c9867d44718487262643cdefd12a386841b41
tree2b5f75e64d6c53571bf455aa41cabcbc8290a887
parentbc66757a0eb3dc0479bed31164e2795480160612
drm: fsl-dcu: Fix no fb check bug

For state->fb or state->crtc may be NULL in fsl_dcu_drm_plane_atomic_check
function, if so, return 0.

Signed-off-by: Meng Yi <meng.yi@nxp.com>
Signed-off-by: Jianwei Wang <jianwei.wang.chn@gmail.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c