diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-15 15:39:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-17 12:28:20 +0200 |
commit | 87c4de4ddcc55d1ec5eb66d1750fe0041bad582d (patch) | |
tree | 25f1b14d0d0de9a945b243838eededa578c63d9b | |
parent | cf1df6c0d4165d3e9cb385c8d8ff394cfc97086d (diff) | |
download | barebox-87c4de4ddcc55d1ec5eb66d1750fe0041bad582d.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |