Commit e837e573 authored by Davor Joja's avatar Davor Joja Committed by Michal Simek
Browse files

gpu: drm: xylon: Fixed NULL pointer dereference



Call drm_fb_helper_prepare() function for proper struct drm_fb_helper
initialization and remove manual drm_fb_helper_funcs pointer initialization.

Error log:
Unable to handle kernel NULL pointer dereference at virtual address 000001d0
pgd = 40004000
[000001d0] *pgd=00000000
Internal error: Oops - BUG: 5 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 3.17.0
PC is at drm_fb_helper_single_add_all_connectors+0x10/0xa8
LR is at xylon_drm_fbdev_init+0x7c/0xfc

Signed-off-by: default avatarDavor Joja <davorjoja@logicbricks.com>
Tested-by: default avatarChristian Kohn <christian.kohn@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent a63bb351
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment