From 5c0bd50319f20655b3c6e93ac9c7a72e44de7bd9 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 15 Sep 2014 15:39:25 +0200 Subject: [PATCH] net: Call edev->recv with correct eth_device edev->recv has to be called with edev as argument, not eth_current. This fixes networking when multiple network devices are used and the current one is switched during runtime. Signed-off-by: Sascha Hauer --- net/eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth.c b/net/eth.c index b830f7924..89bddba07 100644 --- a/net/eth.c +++ b/net/eth.c @@ -246,7 +246,7 @@ static int __eth_rx(struct eth_device *edev) if (ret) return ret; - return edev->recv(eth_current); + return edev->recv(edev); } int eth_rx(void)