Hi, On 1 December 2015 at 08:15, Dongsheng Wang <dongsheng.wang@xxxxxxxxxxxxx> wrote: > From: Jianwei Wang <jianwei.wang.chn@xxxxxxxxx> > > For state->fb may be NULL in fsl_dcu_drm_plane_atomic_check function, > if so, return -EINVAL. No need check in fsl_dcu_drm_plane_atomic_update > anymore. > > Signed-off-by: Jianwei Wang <jianwei.wang.chn@xxxxxxxxx> > Signed-off-by: Yi Meng <b56799@xxxxxxxxxxxxx> > Signed-off-by: Wang Dongsheng <dongsheng.wang@xxxxxxxxxxxxx> > Tested-by: Stefan Agner <stefan@xxxxxxxx> > > diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c > index 51daaea..a8932a8 100644 > --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c > +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c > @@ -41,6 +41,9 @@ static int fsl_dcu_drm_plane_atomic_check(struct drm_plane *plane, > { > struct drm_framebuffer *fb = state->fb; > > + if (!fb) > + return -EINVAL; This should be return 0 instead, else you can never disable a plane ... Cheers, Daniel _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel