Home Home > GIT Browse
diff options
authorLi RongQing <roy.qing.li@gmail.com>2014-05-22 16:36:55 +0800
committerDavid S. Miller <davem@davemloft.net>2014-05-22 15:57:36 -0400
commitfbdc0ad095c0a299e9abf5d8ac8f58374951149a (patch)
parentd0c21d43a5a12aaebb1e42e10cf78e6491fc9e5a (diff)
ipv4: initialise the itag variable in __mkroute_input
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>
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index db1e0da871f4..5e676be3daeb 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1519,7 +1519,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));