summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-09-15 15:39:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-17 12:28:08 +0200
commit068b38ca737bd1698c3e5cb1387e1b7e1a7e697e (patch)
tree0bd743c33f8d55b1f07c96f20354ecc38e4382b4
parenta9d764acabde404df984e6e6aab3452b290d7bd0 (diff)
downloadbarebox-068b38ca737bd1698c3e5cb1387e1b7e1a7e697e.tar.gz
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 <s.hauer@pengutronix.de>
-rw-r--r--net/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index b830f79..89bddba 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)