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:27:42 +0200 |
commit | 5c0bd50319f20655b3c6e93ac9c7a72e44de7bd9 (patch) | |
tree | 544c2af7c800918a572a3c8416f5a1789dbbe16b | |
parent | 48199fd57c38e6acd63213334ef86119e16496c7 (diff) | |
download | barebox-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.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) |