drm/msm: Check for NULL before calling prepare_commit()
authorJessica Zhang <quic_jesszhan@quicinc.com>
Tue, 21 Feb 2023 18:42:54 +0000 (10:42 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 6 Apr 2023 17:29:24 +0000 (20:29 +0300)
commit078f6ec8657db604a1620da6698fb236e9b96bec
treed6524e89736f3d6e13f0328f278708739cc636ce
parent3eeca5e5f3100435b06a5b5d86daa3d135a8a4bd
drm/msm: Check for NULL before calling prepare_commit()

Add a NULL check before calling prepare_commit() in
msm_atomic_commit_tail()

Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/523604/
Link: https://lore.kernel.org/r/20230221184256.1436-3-quic_jesszhan@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/msm_atomic.c