diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:50:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 19:50:30 -0500 |
commit | 55205d400efe3260e29ad26dd64c992cec2efafd (patch) | |
tree | 753b7a7a12ed1dba60399f6b6f7793873ed68788 /net/ipv6/ip6_flowlabel.c | |
parent | dc0a0011cfa8ff01b86859006f4db3656c9a896b (diff) |
ipv6: fix warning in net/ipv6/ip6_flowlabel.c
this warning:
net/ipv6/ip6_flowlabel.c: In function ‘ipv6_flowlabel_opt’:
net/ipv6/ip6_flowlabel.c:467: warning: ‘err’ may be used uninitialized in this function
triggers because GCC does not recognize the (correct) error flow
between fl_create() and 'err'.
Annotate it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_flowlabel.c')
-rw-r--r-- | net/ipv6/ip6_flowlabel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index 7927a8498d17..5656e8aa47d8 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c | |||
@@ -464,7 +464,7 @@ static inline void fl_link(struct ipv6_pinfo *np, struct ipv6_fl_socklist *sfl, | |||
464 | 464 | ||
465 | int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen) | 465 | int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen) |
466 | { | 466 | { |
467 | int err; | 467 | int uninitialized_var(err); |
468 | struct net *net = sock_net(sk); | 468 | struct net *net = sock_net(sk); |
469 | struct ipv6_pinfo *np = inet6_sk(sk); | 469 | struct ipv6_pinfo *np = inet6_sk(sk); |
470 | struct in6_flowlabel_req freq; | 470 | struct in6_flowlabel_req freq; |