diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-05-22 16:36:55 +0800 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-06-18 12:04:04 +0800 |
commit | 1cc02d59fbf4018fdbe7c6aef62481321b10e303 (patch) | |
tree | e24f629f83dcb57aa67ee63b07b50065eaaded7b /net | |
parent | a8559b33def3c2b42084e4d8d7109a3fcb08ecb8 (diff) |
ipv4: initialise the itag variable in __mkroute_input
[ Upstream commit fbdc0ad095c0a299e9abf5d8ac8f58374951149a ]
the value of itag is a random value from stack, and may not be initiated by
fib_validate_source, which called fib_combine_itag if CONFIG_IP_ROUTE_CLASSID
is not set
This will make the cached dst uncertainty
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index db66057b9d1..134437309b1 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1526,7 +1526,7 @@ static int __mkroute_input(struct sk_buff *skb, struct in_device *out_dev; unsigned int flags = 0; bool do_cache; - u32 itag; + u32 itag = 0; /* get a working reference to the output device */ out_dev = __in_dev_get_rcu(FIB_RES_DEV(*res)); |