rt61pci: rt61pci_beacon_update do not free skb twice
The layer above will free the skb in an error case. Signed-off-by: Daniel Wagner <wagi@monom.org> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
2633da237b
commit
e91e9d490d
@@ -2399,10 +2399,8 @@ static int rt61pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb,
|
|||||||
* beacon frame.
|
* beacon frame.
|
||||||
*/
|
*/
|
||||||
if (skb_headroom(skb) < TXD_DESC_SIZE) {
|
if (skb_headroom(skb) < TXD_DESC_SIZE) {
|
||||||
if (pskb_expand_head(skb, TXD_DESC_SIZE, 0, GFP_ATOMIC)) {
|
if (pskb_expand_head(skb, TXD_DESC_SIZE, 0, GFP_ATOMIC))
|
||||||
dev_kfree_skb(skb);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user