mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-30 22:13:15 +00:00
[ Upstream commitb1d685b646] It's possible that state->base.fb is null. Add a check before access its format. Fixes:b6b1bb980e("drm/mediatek: Turn off Alpha bit when plane format has no alpha") Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>