]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita77309db090d2107e7c9d9a1a275839e37170fc7
tree7bb8cacc79f31a08ee159c8a879454de327a650c
parent679f63c3f29fd6c5d17a2f6b0a19feeeb52da41a
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