Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8fdeca2 authored by Hong Liu's avatar Hong Liu Committed by John W. Linville
Browse files

[PATCH] mac80211: fix memory leak when defrag fragments



We forget to free all the fragments when defraging them into one packet.

Signed-off-by: default avatarHong Liu <hong.liu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f11b0f0e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3278,8 +3278,10 @@ ieee80211_rx_h_defragment(struct ieee80211_txrx_data *rx)
			return TXRX_DROP;
		}
	}
	while ((skb = __skb_dequeue(&entry->skb_list)))
	while ((skb = __skb_dequeue(&entry->skb_list))) {
		memcpy(skb_put(rx->skb, skb->len), skb->data, skb->len);
		dev_kfree_skb(skb);
	}

	/* Complete frame has been reassembled - process it now */
	rx->fragmented = 1;