diff options
author | Eric Dumazet <edumazet@google.com> | 2013-09-29 01:21:32 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-30 22:09:00 -0700 |
commit | 36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6 (patch) | |
tree | 3f3cc0acf69af141e804e0506919f33912e13c1e /include/linux/skbuff.h | |
parent | c3f40d7c04152c6f168db2f9b43438015cf092c4 (diff) | |
download | linux-stable-36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6.tar.gz linux-stable-36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6.tar.bz2 linux-stable-36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6.zip |
net: skb_is_gso_v6() requires skb_is_gso()
bnx2x makes a dangerous use of skb_is_gso_v6().
It should first make sure skb is a gso packet
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Acked-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 6d56840e561e..d72d71efa7a3 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2755,6 +2755,7 @@ static inline bool skb_is_gso(const struct sk_buff *skb) return skb_shinfo(skb)->gso_size; } +/* Note: Should be called only if skb_is_gso(skb) is true */ static inline bool skb_is_gso_v6(const struct sk_buff *skb) { return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; |