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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 20:20:39 +0000 (13:20 -0700)
commit242339a25ed829432d99e6571d170b308432ed55
tree4f68295fc2d3e3ce4f903070328f8832a7f7fe68
parentff9cfa6b917a903fe24dba928dca61d0c9339864
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>
net/ipv4/route.c