diff options
author | 2025-04-08 18:22:23 +0100 | |
---|---|---|
committer | 2025-04-10 13:22:12 -0700 | |
commit | 2a34496fef841e8d89a4ccd1a48c7fd664b5c84f (patch) | |
tree | 99bc9c182c59484f65c9418cfad9b941bddfc45f /scripts/lib/kdoc/kdoc_files.py | |
parent | drm/msm/dpu: Fix error pointers in dpu_plane_virtual_atomic_check (diff) | |
download | linux-rng-2a34496fef841e8d89a4ccd1a48c7fd664b5c84f.tar.xz linux-rng-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 <dmitry.baryshkov@linaro.org>
Signed-off-by: Qasim Ijaz <qasdev00@gmail.com>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/647536/
Link: https://lore.kernel.org/r/20250408172223.10827-1-qasdev00@gmail.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions