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

Commit d8da0b5d authored by Cedric Izoard's avatar Cedric Izoard Committed by Johannes Berg
Browse files

mac80211: Ensure enough headroom when forwarding mesh pkt



When a buffer is duplicated during MESH packet forwarding,
this patch ensures that the new buffer has enough headroom.

Signed-off-by: default avatarCedric Izoard <cedric.izoard@ceva-dsp.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent ec4efc4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2472,7 +2472,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
	if (!ifmsh->mshcfg.dot11MeshForwarding)
		goto out;

	fwd_skb = skb_copy(skb, GFP_ATOMIC);
	fwd_skb = skb_copy_expand(skb, local->tx_headroom, 0, GFP_ATOMIC);
	if (!fwd_skb) {
		net_info_ratelimited("%s: failed to clone mesh frame\n",
				    sdata->name);