flow_dissector: Pre-initialize ip_proto in __skb_flow_dissect()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 25 Jun 2015 13:10:32 +0000 (15:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Jun 2015 23:53:54 +0000 (16:53 -0700)
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>
net/core/flow_dissector.c

index 476e5dda59e19822dba98a931369ff2666c59c0d..2a834c6179b9973e45274d793e7d744939e5f49e 100644 (file)
@@ -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;