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:08 +0200 |
commit | 068b38ca737bd1698c3e5cb1387e1b7e1a7e697e (patch) | |
tree | 0bd743c33f8d55b1f07c96f20354ecc38e4382b4 | |
parent | a9d764acabde404df984e6e6aab3452b290d7bd0 (diff) | |
download | barebox-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.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) |