Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
David S. Miller
8e690ffd 905726c1

+1 -1
+1 -1
net/core/flow_dissector.c
··· 129 129 struct flow_dissector_key_ports *key_ports; 130 130 struct flow_dissector_key_tags *key_tags; 131 131 struct flow_dissector_key_keyid *key_keyid; 132 - u8 ip_proto; 132 + u8 ip_proto = 0; 133 133 134 134 if (!data) { 135 135 data = skb->data;