boundarydevices / linux

Kernel tree for Ezurio (ex-Boundary Devices) platforms
https://www.ezurio.com/
194 stars 290 forks source link

drm: mxsfb: fix NULL pointer dereference #73

Closed antznin closed 9 months ago

antznin commented 11 months ago

Similarly to commit 622c9a3a7868 ("drm: mxsfb: Fix NULL pointer dereference"), mxsfb should never be allowed to dereference the NULL pointer that drm_atomic_get_new_bridge_state is allowed to return.

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
...
Call trace:
 mxsfb_plane_primary_atomic_update+0xec/0x260
 drm_atomic_helper_commit_planes+0xe8/0x20c
 drm_atomic_helper_commit_tail_rpm+0x5c/0xa0
 commit_tail+0xa0/0x180
 commit_work+0x14/0x20
 process_one_work+0x1c4/0x470
 worker_thread+0x70/0x434
 kthread+0x154/0x160
 ret_from_fork+0x10/0x20