aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorQasim Ijaz <[email protected]>2025-04-08 17:22:23 +0000
committerAbhinav Kumar <[email protected]>2025-04-10 20:22:12 +0000
commit2a34496fef841e8d89a4ccd1a48c7fd664b5c84f (patch)
tree99bc9c182c59484f65c9418cfad9b941bddfc45f /rust/helpers/platform.c
parentdrm/msm/dpu: Fix error pointers in dpu_plane_virtual_atomic_check (diff)
downloadkernel-2a34496fef841e8d89a4ccd1a48c7fd664b5c84f.tar.gz
kernel-2a34496fef841e8d89a4ccd1a48c7fd664b5c84f.zip
drm/msm/dpu: reorder pointer operations after sanity checks to avoid NULL deref
_dpu_encoder_trigger_start dereferences "struct dpu_encoder_phys *phys" before the sanity checks which can lead to a NULL pointer dereference if phys is NULL. Fix this by reordering the dereference after the sanity checks. Fixes: 8144d17a81d9 ("drm/msm/dpu: Skip trigger flush and start for CWB") Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Qasim Ijaz <[email protected]> Reviewed-by: Jessica Zhang <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/647536/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions