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:27:42 +0200
commit5c0bd50319f20655b3c6e93ac9c7a72e44de7bd9 (patch)
tree544c2af7c800918a572a3c8416f5a1789dbbe16b
parent48199fd57c38e6acd63213334ef86119e16496c7 (diff)
downloadbarebox-5c0bd50319f20655b3c6e93ac9c7a72e44de7bd9.tar.gz
barebox-5c0bd50319f20655b3c6e93ac9c7a72e44de7bd9.tar.xz
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 b830f79249..89bddba07d 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)