projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'mtd/for-4.16' of git://git.infradead.org/linux-mtd
[linux-2.6-microblaze.git]
/
net
/
ipv6
/
tcpv6_offload.c
diff --git
a/net/ipv6/tcpv6_offload.c
b/net/ipv6/tcpv6_offload.c
index
d883c92
..
278e49c
100644
(file)
--- a/
net/ipv6/tcpv6_offload.c
+++ b/
net/ipv6/tcpv6_offload.c
@@
-46,6
+46,9
@@
static struct sk_buff *tcp6_gso_segment(struct sk_buff *skb,
{
struct tcphdr *th;
+ if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6))
+ return ERR_PTR(-EINVAL);
+
if (!pskb_may_pull(skb, sizeof(*th)))
return ERR_PTR(-EINVAL);