madwifi: fix a node refcounting imbalance with a low (but nonzero) crash probability
authorFelix Fietkau <nbd@openwrt.org>
Sat, 11 Oct 2008 01:56:27 +0000 (01:56 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 11 Oct 2008 01:56:27 +0000 (01:56 +0000)
SVN-Revision: 12950

package/madwifi/patches/372-queue_vif.patch

index 6fa86b98847c3bffd973794fbb65df5857c689a7..83576c8e6ce06b097902af63befbdae9b73af014 100644 (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++;