diff options
| author | Chenyuan Yang <[email protected]> | 2025-03-14 01:10:04 +0000 |
|---|---|---|
| committer | Abhinav Kumar <[email protected]> | 2025-04-10 20:21:44 +0000 |
| commit | 5cb1b130e1cd04239cc9c26a98279f4660dce583 (patch) | |
| tree | 1d6bc40aa1d4706dfb30e26d9558dcb379295d8b /rust/helpers/blk.c | |
| parent | drm/msm/dpu: check every pipe per capability (diff) | |
| download | kernel-5cb1b130e1cd04239cc9c26a98279f4660dce583.tar.gz kernel-5cb1b130e1cd04239cc9c26a98279f4660dce583.zip | |
drm/msm/dpu: Fix error pointers in dpu_plane_virtual_atomic_check
The function dpu_plane_virtual_atomic_check was dereferencing pointers
returned by drm_atomic_get_plane_state without checking for errors. This
could lead to undefined behavior if the function returns an error pointer.
This commit adds checks using IS_ERR to ensure that plane_state is
valid before dereferencing them.
Similar to commit da29abe71e16
("drm/amd/display: Fix error pointers in amdgpu_dm_crtc_mem_type_changed").
Fixes: 774bcfb73176 ("drm/msm/dpu: add support for virtual planes")
Signed-off-by: Chenyuan Yang <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: Abhinav Kumar <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/643132/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abhinav Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/blk.c')
0 files changed, 0 insertions, 0 deletions
