Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e690ffd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller
Browse files

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarTom Herbert <tom@herbertland.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 905726c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -129,7 +129,7 @@ bool __skb_flow_dissect(const struct sk_buff *skb,
	struct flow_dissector_key_ports *key_ports;
	struct flow_dissector_key_ports *key_ports;
	struct flow_dissector_key_tags *key_tags;
	struct flow_dissector_key_tags *key_tags;
	struct flow_dissector_key_keyid *key_keyid;
	struct flow_dissector_key_keyid *key_keyid;
	u8 ip_proto;
	u8 ip_proto = 0;


	if (!data) {
	if (!data) {
		data = skb->data;
		data = skb->data;