summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMikhail Kobuk <m.kobuk@ispras.ru>2024-03-21 19:47:30 +0300
committerVinod Koul <vkoul@kernel.org>2024-04-05 22:32:00 +0530
commite4308bc22b9d46cf33165c9dfaeebcf29cd56f04 (patch)
treee1455e0ca616c700102af2735904bcf1d8d000b2 /include/sound
parent4cece764965020c22cff7665b18a012006359095 (diff)
downloadlinux-stable-e4308bc22b9d46cf33165c9dfaeebcf29cd56f04.tar.gz
linux-stable-e4308bc22b9d46cf33165c9dfaeebcf29cd56f04.tar.bz2
linux-stable-e4308bc22b9d46cf33165c9dfaeebcf29cd56f04.zip
phy: marvell: a3700-comphy: Fix out of bounds read
There is an out of bounds read access of 'gbe_phy_init_fix[fix_idx].addr' every iteration after 'fix_idx' reaches 'ARRAY_SIZE(gbe_phy_init_fix)'. Make sure 'gbe_phy_init[addr]' is used when all elements of 'gbe_phy_init_fix' array are handled. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 934337080c6c ("phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementation") Signed-off-by: Mikhail Kobuk <m.kobuk@ispras.ru> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20240321164734.49273-1-m.kobuk@ispras.ru Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions