In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dpu: check for null return of devmkzalloc() in dpuwriteback_init()
Because of the possilble failure of devmkzalloc(), dpuwb_conn might be NULL and will cause null pointer dereference later.
Therefore, it might be better to check it and directly return -ENOMEM.
Patchwork: https://patchwork.freedesktop.org/patch/512277/ [DB: fixed typo in commit message]