[PATCH] net: dsa: don't index the port array one entry past its end

Sascha Hauer s.hauer at pengutronix.de
Fri Aug 28 05:17:00 PDT 2026


On Wed, 26 Aug 2026 11:58:42 +0200, Ahmad Fatoum wrote:
> dsa_rx_preprocessor() takes the source port out of the received frame
> and rejects it with
> 
> 	if (port > DSA_MAX_PORTS)
> 		return -ERANGE;
> 
> before reading ds->dp[port], but the array is declared as
> 
> [...]

Applied, thanks!

[1/1] net: dsa: don't index the port array one entry past its end
      https://git.pengutronix.de/cgit/barebox/commit/?id=00c015c961d0 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list