Skip to content

Commit

Permalink
[PATCH] zd1211rw: disable TX queue during stop
Browse files Browse the repository at this point in the history
This avoids some potential races.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Daniel Drake authored and Jeff Garzik committed Jul 5, 2006
1 parent e85d091 commit c9a4b35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/zd1211rw/zd_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9a4b35

Please sign in to comment.