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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux