OpenCloudOS-Kernel/drivers/gpu/drm/mcde
Linus Walleij b48fd568ac drm: mcde: Fix forgotten user of drm->dev_private
Unable to handle kernel NULL pointer dereference at virtual address 00000918
pgd = (ptrval)
[00000918] *pgd=00000000
Internal error: Oops: 5 [#1] SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.7.0-15001-gfa384b50b96b-dirty #514
Hardware name: ST-Ericsson Ux5x0 platform (Device Tree Support)
PC is at mcde_display_enable+0x78/0x7c0
LR is at mcde_display_enable+0x78/0x7c0

Fix this by using to_mcde() as in other functions.

Fixes: fd7ee85cfe ("drm/mcde: Don't use drm_device->dev_private")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200613223027.4189309-2-linus.walleij@linaro.org
2020-06-16 22:22:38 +02:00
..
Kconfig
Makefile
mcde_display.c drm: mcde: Fix forgotten user of drm->dev_private 2020-06-16 22:22:38 +02:00
mcde_display_regs.h
mcde_drm.h drm/mcde: Don't use drm_device->dev_private 2020-04-28 16:03:40 +02:00
mcde_drv.c drm: mcde: Fix display initialization problem 2020-06-16 22:22:36 +02:00
mcde_dsi.c drm/mcde: dsi: Fix return value check in mcde_dsi_bind() 2020-05-12 13:48:24 +02:00
mcde_dsi_regs.h drm/mcde: Some fixes to handling video mode 2019-12-17 21:20:03 +01:00