android_kernel_msm-6.1_noth.../drivers/gpu
Miaoqian Lin c6fa1de83f drm/msm/dpu: Fix memory leak in msm_mdss_parse_data_bus_icc_path
[ Upstream commit 45dac1352b55b1d8cb17f218936b2bc2bc1fb4ee ]

of_icc_get() alloc resources for path1, we should release it when not
need anymore. Early return when IS_ERR_OR_NULL(path0) may leak path1.
Defer getting path1 to fix this.

Fixes: b9364eed92 ("drm/msm/dpu: Move min BW request and full BW disable back to mdss")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/514264/
Link: https://lore.kernel.org/r/20221207065922.2086368-1-linmq006@gmail.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:58:23 +01:00
..
drm drm/msm/dpu: Fix memory leak in msm_mdss_parse_data_bus_icc_path 2023-01-18 11:58:23 +01:00
host1x gpu: host1x: Avoid trying to use GART on Tegra20 2022-11-18 09:33:20 +01:00
ipu-v3
trace
vga
Makefile gpu: host1x: Add context bus 2022-06-01 11:50:42 +02:00