diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 1cb056be4489..468a31c8c113 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -2379,10 +2379,8 @@ static int rt61pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
2379 | */ | 2379 | */ |
2380 | if (skb_headroom(skb) < intf->beacon->queue->desc_size) { | 2380 | if (skb_headroom(skb) < intf->beacon->queue->desc_size) { |
2381 | if (pskb_expand_head(skb, intf->beacon->queue->desc_size, | 2381 | if (pskb_expand_head(skb, intf->beacon->queue->desc_size, |
2382 | 0, GFP_ATOMIC)) { | 2382 | 0, GFP_ATOMIC)) |
2383 | dev_kfree_skb(skb); | ||
2384 | return -ENOMEM; | 2383 | return -ENOMEM; |
2385 | } | ||
2386 | } | 2384 | } |
2387 | 2385 | ||
2388 | /* | 2386 | /* |