Skip to content

Commit d8da0b5

Browse files
Cedric Izoardjmberg-intel
authored andcommitted
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: Cedric Izoard <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent ec4efc4 commit d8da0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
24722472
if (!ifmsh->mshcfg.dot11MeshForwarding)
24732473
goto out;
24742474

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

0 commit comments

Comments
 (0)