提交 c9a4b35d 编写于 作者: D Daniel Drake 提交者: Jeff Garzik

[PATCH] zd1211rw: disable TX queue during stop

This avoids some potential races.
Signed-off-by: NDaniel Drake <dsd@gentoo.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e85d0918
......@@ -197,6 +197,8 @@ int zd_mac_stop(struct net_device *netdev)
struct zd_mac *mac = zd_netdev_mac(netdev);
struct zd_chip *chip = &mac->chip;
netif_stop_queue(netdev);
/*
* The order here deliberately is a little different from the open()
* method, since we need to make sure there is no opportunity for RX
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册