浏览代码

libertas: free successfully transmitted skbs again

I was so busy cleaning up the failure modes that I accidentally forgot
to make sure we still free them in the success case. Oops.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
David Woodhouse 17 年之前
父节点
当前提交
45c24903b7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/net/wireless/libertas/tx.c

+ 3 - 1
drivers/net/wireless/libertas/tx.c

@@ -161,7 +161,9 @@ int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
 
 
 			/* Keep the skb around for when we get feedback */
 			/* Keep the skb around for when we get feedback */
 			priv->currenttxskb = skb;
 			priv->currenttxskb = skb;
-		}
+		} else
+			dev_kfree_skb_any(skb);
+		
 	}
 	}
 	
 	
 	spin_unlock_irqrestore(&priv->driver_lock, flags);
 	spin_unlock_irqrestore(&priv->driver_lock, flags);