summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChenyuan Yang <chenyuan0y@gmail.com>2025-03-14 04:10:04 +0300
committerAbhinav Kumar <quic_abhinavk@quicinc.com>2025-04-10 23:21:44 +0300
commit5cb1b130e1cd04239cc9c26a98279f4660dce583 (patch)
tree1d6bc40aa1d4706dfb30e26d9558dcb379295d8b /tools/perf/scripts/python/export-to-postgresql.py
parentbcaa391e177c06a58c5f3cd18484a317d40239aa (diff)
downloadlinux-5cb1b130e1cd04239cc9c26a98279f4660dce583.tar.xz
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 <chenyuan0y@gmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/643132/ Link: https://lore.kernel.org/r/20250314011004.663804-1-chenyuan0y@gmail.com Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions