summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/i825xx
diff options
context:
space:
mode:
authorKory Maincent <kory.maincent@bootlin.com>2024-10-15 15:02:54 +0200
committerAndrew Lunn <andrew@lunn.ch>2024-10-19 22:55:56 +0200
commitf2767a41959e60763949c73ee180e40c686e807e (patch)
treee6cee3faa4fdbe0b5c33700206243284e7879bed /drivers/net/ethernet/i825xx
parentMerge tag 'net-6.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff)
downloadlinux-f2767a41959e60763949c73ee180e40c686e807e.tar.xz
linux-f2767a41959e60763949c73ee180e40c686e807e.zip
net: pse-pd: Fix out of bound for loop
Adjust the loop limit to prevent out-of-bounds access when iterating over PI structures. The loop should not reach the index pcdev->nr_lines since we allocate exactly pcdev->nr_lines number of PI structures. This fix ensures proper bounds are maintained during iterations. Fixes: 9be9567a7c59 ("net: pse-pd: Add support for PSE PIs") Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Simon Horman <horms@kernel.org> Acked-by: Oleksij Rempel <o.rempel@pengutronix.de> Message-ID: <20241015130255.125508-1-kory.maincent@bootlin.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'drivers/net/ethernet/i825xx')
0 files changed, 0 insertions, 0 deletions