In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dpu: Fix error pointers in dpuplanevirtualatomiccheck
The function dpuplanevirtualatomiccheck was dereferencing pointers returned by drmatomicgetplanestate without checking for errors. This could lead to undefined behavior if the function returns an error pointer.
This commit adds checks using ISERR to ensure that planestate is valid before dereferencing them.
Similar to commit da29abe71e16 ("drm/amd/display: Fix error pointers in amdgpudmcrtcmemtype_changed").
Patchwork: https://patchwork.freedesktop.org/patch/643132/