OpenCloudOS-Kernel/drivers/gpu/drm/msm/disp
José Expósito 170b22234d drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc
The function performs a check on the "ctx" input parameter, however, it
is used before the check.

Initialize the "base" variable after the sanity check to avoid a
possible NULL pointer dereference.

Fixes: 4259ff7ae5 ("drm/msm/dpu: add support for pcc color block in dpu driver")
Addresses-Coverity-ID: 1493866 ("Null pointer dereference")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/20220109192431.135949-1-jose.exposito89@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-01-25 05:45:39 +03:00
..
dpu1 drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc 2022-01-25 05:45:39 +03:00
mdp4 drm/msm/mdp4: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare 2021-10-15 13:26:33 -07:00
mdp5 drm/msm: Initialize MDSS irq domain at probe time 2021-12-06 09:22:51 -08:00
mdp_common.xml.h drm/msm: Generated register update 2021-06-23 07:33:54 -07:00
mdp_format.c drm/msm: remove unlikely() from WARN_ON() conditions 2019-09-04 08:42:45 -07:00
mdp_kms.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
mdp_kms.h drm/msm/kms: Update msm_kms_init/destroy 2020-11-01 10:13:32 -08:00
msm_disp_snapshot.c drm/msm/disp: Export helper for capturing snapshot 2021-12-16 09:51:24 -08:00
msm_disp_snapshot.h drm/msm/disp: Export helper for capturing snapshot 2021-12-16 09:51:24 -08:00
msm_disp_snapshot_util.c drm/msm/disp: Tweak display snapshot to match gpu snapshot 2021-12-15 15:28:41 -08:00