[PATCH] phy: qcom: qmp-usbc: Fix out-of-bounds array access in dp swing config

Vinod Koul vkoul at kernel.org
Tue May 19 03:43:35 PDT 2026


On Fri, 27 Feb 2026 20:15:01 +0800, Xiangxu Yin wrote:
> swing_tbl and pre_emphasis_tbl are 4x4 arrays (valid indices 0-3), but
> the boundary check uses "> 4" instead of ">= 4", allowing index 4 to
> cause an out-of-bounds access.
> 
> 

Applied, thanks!

[1/1] phy: qcom: qmp-usbc: Fix out-of-bounds array access in dp swing config
      commit: ea17fc4d7dc2ba6459b1a318962960520201baf1

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list