All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mac80211: Ensure enough headroom when forwarding mesh pkt
@ 2016-12-07  9:59 Cedric Izoard
  2016-12-13 15:09 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Cedric Izoard @ 2016-12-07  9:59 UTC (permalink / raw
  To: linux-wireless@vger.kernel.org

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

Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
---
 net/mac80211/rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index d2a00f2..bfa5f4d 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2468,7 +2468,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);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] mac80211: Ensure enough headroom when forwarding mesh pkt
  2016-12-07  9:59 [PATCH v2] mac80211: Ensure enough headroom when forwarding mesh pkt Cedric Izoard
@ 2016-12-13 15:09 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2016-12-13 15:09 UTC (permalink / raw
  To: Cedric Izoard, linux-wireless@vger.kernel.org

On Wed, 2016-12-07 at 09:59 +0000, Cedric Izoard wrote:
> When a buffer is duplicated during MESH packet forwarding,
> this patch ensures that the new buffer has enough headroom.

Applied.

johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-13 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07  9:59 [PATCH v2] mac80211: Ensure enough headroom when forwarding mesh pkt Cedric Izoard
2016-12-13 15:09 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.