浏览代码

[PATCH] zd1211rw: disable TX queue during stop

This avoids some potential races.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Daniel Drake 19 年之前
父节点
当前提交
c9a4b35df9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/net/wireless/zd1211rw/zd_mac.c

+ 2 - 0
drivers/net/wireless/zd1211rw/zd_mac.c

@@ -197,6 +197,8 @@ int zd_mac_stop(struct net_device *netdev)
 	struct zd_mac *mac = zd_netdev_mac(netdev);
 	struct zd_mac *mac = zd_netdev_mac(netdev);
 	struct zd_chip *chip = &mac->chip;
 	struct zd_chip *chip = &mac->chip;
 
 
+	netif_stop_queue(netdev);
+
 	/*
 	/*
 	 * The order here deliberately is a little different from the open()
 	 * The order here deliberately is a little different from the open()
 	 * method, since we need to make sure there is no opportunity for RX
 	 * method, since we need to make sure there is no opportunity for RX