OpenCloudOS-Kernel/drivers/gpu/drm/msm/dsi
Johan Hovold 2e786eb2f9 drm/msm/dsi: fix memory corruption with too many bridges
Add the missing sanity check on the bridge counter to avoid corrupting
data beyond the fixed-sized bridge array in case there are ever more
than eight bridges.

Fixes: a689554ba6 ("drm/msm: Initial add DSI connector support")
Cc: stable@vger.kernel.org	# 4.1
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/502668/
Link: https://lore.kernel.org/r/20220913085320.8577-4-johan+linaro@kernel.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
2022-09-30 16:57:53 +00:00
..
phy drm/msm/dsi: Improve dsi_phy_driver_probe() probe error handling 2022-09-18 09:38:06 -07:00
dsi.c drm/msm/dsi: fix memory corruption with too many bridges 2022-09-30 16:57:53 +00:00
dsi.h drm/msm/dsi: switch to DRM_PANEL_BRIDGE 2022-09-18 09:38:06 -07:00
dsi.xml.h drm/msm: Update generated headers 2022-04-26 00:56:22 +03:00
dsi_cfg.c drm/msm/dsi: Take advantage of devm_regulator_bulk_get_const() 2022-09-18 09:38:06 -07:00
dsi_cfg.h drm/msm/dsi: Take advantage of devm_regulator_bulk_get_const() 2022-09-18 09:38:06 -07:00
dsi_host.c drm/msm/dsi: Remove use of device_node in dsi_host_parse_dt() 2022-09-18 09:38:06 -07:00
dsi_manager.c drm/msm/dsi: switch to DRM_PANEL_BRIDGE 2022-09-18 09:38:06 -07:00
dsi_phy_7nm.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
dsi_phy_10nm.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
dsi_phy_14nm.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
dsi_phy_20nm.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
dsi_phy_28nm.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
dsi_phy_28nm_8960.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
mmss_cc.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
sfpb.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00