[PATCH] fixup! net: smc911x: do not read past the receive buffer

Sascha Hauer s.hauer at pengutronix.de
Tue May 28 07:23:42 PDT 2024


---
 drivers/net/smc911x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index cb2e57da5e..8ae71ea81f 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -467,6 +467,8 @@ static void smc911x_eth_rx(struct eth_device *edev)
 		} else {
 			while (tmplen--)
 				*data++ = smc911x_reg_read(priv, RX_DATA_FIFO);
+
+			net_receive(edev, priv->rx_buf, pktlen);
 		}
 	}
 }
-- 
2.39.2




More information about the barebox mailing list