]> err.no Git - linux-2.6/commitdiff
iwlwifi: decrement rx skb counter in scan abort handler
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 4 Aug 2008 08:00:46 +0000 (16:00 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Aug 2008 19:09:13 +0000 (15:09 -0400)
This patch decrements rx skb counter in scan abort handler.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-scan.c

index 5a00ac23e2d010c32440406bf1eadc045849e5c2..9bb6adb28b73dd5a1aaf4041d61d03f9f2e0200b 100644 (file)
@@ -202,6 +202,7 @@ static int iwl_send_scan_abort(struct iwl_priv *priv)
                clear_bit(STATUS_SCAN_HW, &priv->status);
        }
 
+       priv->alloc_rxb_skb--;
        dev_kfree_skb_any(cmd.meta.u.skb);
 
        return ret;