madwifi: fix a node refcounting imbalance with a low (but nonzero) crash probability

SVN-Revision: 12950
This commit is contained in:
Felix Fietkau 2008-10-11 01:56:27 +00:00
parent 9220c452e5
commit d625fc88d3

View file

@ -18,7 +18,7 @@
+ if (ret == NETDEV_TX_BUSY)
+ ieee80211_dev_kfree_skb(&skb1);
+
+ if (ret != NETDEV_TX_OK) {
+ else if (ret != NETDEV_TX_OK) {
/* If queue dropped the packet because device was
* too busy */
vap->iv_devstats.tx_dropped++;