OpenCloudOS-Kernel/drivers/gpu/drm/msm/disp/dpu1
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
..
dpu_core_irq.h drm/msm/dpu: simplify IRQ enabling/disabling 2021-06-23 07:32:15 -07:00
dpu_core_perf.c drm/msm/disp: Move various debug logs to atomic bucket 2021-06-23 07:32:16 -07:00
dpu_core_perf.h Merge tag 'drm-msm-next-2019-06-25' of https://gitlab.freedesktop.org/drm/msm into drm-next 2019-06-28 10:16:40 +10:00
dpu_crtc.c drm/msm/dpu: add dpu_crtc_atomic_print_state 2021-12-15 15:28:40 -08:00
dpu_crtc.h drm/msm/dpu: stop manually removing debugfs files for the DPU CRTC 2021-12-15 15:28:40 -08:00
dpu_encoder.c drm/msm/dp: employ bridge mechanism for display enable and disable 2021-12-07 15:23:24 -08:00
dpu_encoder.h drm/msm: Change dpu_crtc_get_vblank_counter to use vsync count. 2021-10-15 12:59:20 -07:00
dpu_encoder_phys.h drm/msm/dpu: drop remains of old irq lookup subsystem 2021-06-23 07:32:15 -07:00
dpu_encoder_phys_cmd.c drm/msm: delete conversion from bool value to bool return 2021-10-15 13:26:33 -07:00
dpu_encoder_phys_vid.c drm/msm/dpu: removed logically dead code 2021-12-07 14:47:11 -08:00
dpu_formats.c drm/msm/disp: Move various debug logs to atomic bucket 2021-06-23 07:32:16 -07:00
dpu_formats.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
dpu_hw_blk.h drm/msm/dpu: hw_blk: make dpu_hw_blk empty opaque structure 2021-06-23 07:33:54 -07:00
dpu_hw_catalog.c drm/msm/disp/dpu1: set default group ID for CTL. 2021-12-08 10:08:25 -08:00
dpu_hw_catalog.h drm/msm/disp/dpu1: set default group ID for CTL. 2021-12-08 10:08:25 -08:00
dpu_hw_ctl.c drm/msm/disp/dpu1: set default group ID for CTL. 2021-12-08 10:08:25 -08:00
dpu_hw_ctl.h drm/msm/disp/dpu1: add support to program fetch active in ctl path 2021-04-07 11:05:48 -07:00
dpu_hw_dspp.c drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc 2022-01-25 05:45:39 +03:00
dpu_hw_dspp.h drm/msm/dpu: add support for pcc color block in dpu driver 2020-05-18 09:26:32 -07:00
dpu_hw_interrupts.c drm/msm/dpu: Add more of the INTF interrupt regions 2021-11-29 16:19:58 -08:00
dpu_hw_interrupts.h drm/msm/dpu: Add more of the INTF interrupt regions 2021-11-29 16:19:58 -08:00
dpu_hw_intf.c drm/msm/dpu: hw_blk: make dpu_hw_blk empty opaque structure 2021-06-23 07:33:54 -07:00
dpu_hw_intf.h drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver 2021-04-07 11:05:43 -07:00
dpu_hw_lm.c drm/msm/dpu: Add CRC support for DPU 2021-10-21 10:42:42 -07:00
dpu_hw_lm.h drm/msm/dpu: Add CRC support for DPU 2021-10-21 10:42:42 -07:00
dpu_hw_mdss.h drm/msm/dpu: Fix a typo 2021-06-23 07:33:52 -07:00
dpu_hw_merge3d.c drm/msm/dpu: hw_blk: make dpu_hw_blk empty opaque structure 2021-06-23 07:33:54 -07:00
dpu_hw_merge3d.h drm/msm/dpu: setup merge modes in merge_3d block 2020-11-04 08:26:26 -08:00
dpu_hw_pingpong.c drm/msm/dpu: hw_blk: make dpu_hw_blk empty opaque structure 2021-06-23 07:33:54 -07:00
dpu_hw_pingpong.h drm/msm/dpu: use struct dpu_hw_merge_3d in dpu_hw_pingpong 2021-06-23 07:33:54 -07:00
dpu_hw_sspp.c drm/msm/dpu: move SSPP debugfs support from plane to SSPP code 2021-12-16 09:51:25 -08:00
dpu_hw_sspp.h drm/msm/dpu: move SSPP debugfs support from plane to SSPP code 2021-12-16 09:51:25 -08:00
dpu_hw_top.c drm/msm/dpu: hw_blk: make dpu_hw_blk empty opaque structure 2021-06-23 07:33:54 -07:00
dpu_hw_top.h drivers: gpu: drm: msn: disp: dpu1: Fixed couple of spellings in the file dpu_hw_top.h 2021-04-07 11:05:44 -07:00
dpu_hw_util.c drm/msm/dpu: drop dpu_csc_cfg from dpu_plane 2021-11-28 09:32:02 -08:00
dpu_hw_util.h drm/msm/dpu: drop dpu_csc_cfg from dpu_plane 2021-11-28 09:32:02 -08:00
dpu_hw_vbif.c drm/msm/dpu: Fix VBIF_XINL_QOS_LVL_REMAP_000 register offset 2021-01-31 11:34:35 -08:00
dpu_hw_vbif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
dpu_hwio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
dpu_io_util.c msm:disp:dpu1: Fix core clk rate in display driver 2020-01-02 15:52:55 -08:00
dpu_io_util.h drm/msm/dpu: Drop unused GPIO code 2019-09-03 16:16:58 -07:00
dpu_kms.c drm/msm/dpu: add layer mixer register dump to dpu snapshot 2021-12-16 09:51:25 -08:00
dpu_kms.h drm/msm/dpu: simplify DPU's regset32 code 2021-12-15 15:28:40 -08:00
dpu_mdss.c drm/msm: Initialize MDSS irq domain at probe time 2021-12-06 09:22:51 -08:00
dpu_plane.c drm/msm/dpu: move SSPP debugfs support from plane to SSPP code 2021-12-16 09:51:25 -08:00
dpu_plane.h drm/msm/dpu: move disable_danger out of plane subdir 2021-12-15 15:28:40 -08:00
dpu_rm.c drm/msm/dpu: hw_blk: make dpu_hw_blk empty opaque structure 2021-06-23 07:33:54 -07:00
dpu_rm.h drm/msm/dpu: initial support for merge3D hardware block 2020-11-04 08:26:26 -08:00
dpu_trace.h drm/msm/dpu: Remove encoder->enable() hack 2021-12-07 14:47:10 -08:00
dpu_vbif.c drm/msm/disp: Move various debug logs to atomic bucket 2021-06-23 07:32:16 -07:00
dpu_vbif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
msm_media_info.h