diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-06-25 15:10:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-28 16:53:54 -0700 |
commit | 8e690ffdbcc7b548aae3c644c3efcc6e0394fe37 (patch) | |
tree | 971cf4ab4f26f16815c5a91b018283dcff4f8c6e /net/core | |
parent | 905726c1c5a3ca620ba7d73c78eddfb91de5ce28 (diff) | |
download | op-kernel-dev-8e690ffdbcc7b548aae3c644c3efcc6e0394fe37.zip op-kernel-dev-8e690ffdbcc7b548aae3c644c3efcc6e0394fe37.tar.gz |
flow_dissector: Pre-initialize ip_proto in __skb_flow_dissect()
net/core/flow_dissector.c: In function ‘__skb_flow_dissect’:
net/core/flow_dissector.c:132: warning: ‘ip_proto’ may be used uninitialized in this function
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/flow_dissector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 476e5dd..2a834c6 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -129,7 +129,7 @@ bool __skb_flow_dissect(const struct sk_buff *skb, struct flow_dissector_key_ports *key_ports; struct flow_dissector_key_tags *key_tags; struct flow_dissector_key_keyid *key_keyid; - u8 ip_proto; + u8 ip_proto = 0; if (!data) { data = skb->data; |