9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2014-09-15 15:39:25 +02:00
parent 48199fd57c
commit 5c0bd50319
1 changed files with 1 additions and 1 deletions

View File

@ -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)