* [PATCH] net/core/skbuff.c fix skb_expand_head off logic error!
@ 2018-04-23 13:02 web_czom
2018-04-23 14:12 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: web_czom @ 2018-04-23 13:02 UTC (permalink / raw)
To: stable; +Cc: stable
fix logic error!
--- linux/net/core/skbuff.c.orig 2018-04-23 20:55:37.747731000 +0800
+++ linux/net/core/skbuff.c 2018-04-23 20:56:30.782520000 +0800
@@ -1492,7 +1492,7 @@ int pskb_expand_head(struct sk_buff *skb
} else {
skb_free_head(skb);
}
- off = (data + nhead) - skb->head;
+ off = (skb->data - skb->head) + nhead;
skb->head = data;
skb->head_frag = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-23 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-23 13:02 [PATCH] net/core/skbuff.c fix skb_expand_head off logic error! web_czom
2018-04-23 14:12 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).