diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-05-30 10:19:55 +0800 |
---|---|---|
committer | Abhinav Kumar <quic_abhinavk@quicinc.com> | 2022-06-01 16:16:05 -0700 |
commit | 8caad14e722477807e9324fe0e85dd10151fb134 (patch) | |
tree | fa208ac03357e68fd56788c758bb18ea342c7ba8 /drivers/gpu/drm/drm_modes.c | |
parent | fb0af2daaa04d69b9e66613b8721d23d41f387f6 (diff) | |
download | linux-stable-8caad14e722477807e9324fe0e85dd10151fb134.tar.gz linux-stable-8caad14e722477807e9324fe0e85dd10151fb134.tar.bz2 linux-stable-8caad14e722477807e9324fe0e85dd10151fb134.zip |
drm/msm/dpu: Fix pointer dereferenced before checking
The phys_enc->wb_idx is dereferencing before null checking, so move
it after checking.
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: d7d0e73f7de33 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/487606/
Link: https://lore.kernel.org/r/1653877196-23114-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
0 files changed, 0 insertions, 0 deletions