ipv4: initialise the itag variable in __mkroute_input
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 22 May 2014 08:36:55 +0000 (16:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 May 2014 19:57:36 +0000 (15:57 -0400)
commitfbdc0ad095c0a299e9abf5d8ac8f58374951149a
tree7bb8cacc79f31a08ee159c8a879454de327a650c
parentd0c21d43a5a12aaebb1e42e10cf78e6491fc9e5a
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>
net/ipv4/route.c