mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
When a VOP is re-enabled, it will start scanning right away the framebuffers that were configured from the last time, even if those have been destroyed already. To prevent the VOP from trying to access freed memory, disable all its windows when the CRTC is being disabled, then each window will get a valid framebuffer address before it's enabled again. Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_NsjGMhfxYheHR8xXXmacZs+p5SHw@mail.gmail.com (am from https://patchwork.kernel.org/patch/8643631/) Change-Id: Iaacb1624b4351a94d663ec73d9174b0fd4bc4b54 Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Mark Yao <mark.yao@rock-chips.com>