Skip to content

Commit

Permalink
libertas: free successfully transmitted skbs again
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent a97bcfe commit 45c2490
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/libertas/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
priv->currenttxskb = skb;
}
} else
dev_kfree_skb_any(skb);

}

spin_unlock_irqrestore(&priv->driver_lock, flags);
Expand Down

0 comments on commit 45c2490

Please sign in to comment.