mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ipv4: initialise the itag variable in __mkroute_input
[ Upstream commit fbdc0ad095
]
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>
This commit is contained in:
parent
7c8a60a9e3
commit
62e1a647e7
1 changed files with 1 additions and 1 deletions
|
@ -2129,7 +2129,7 @@ static int __mkroute_input(struct sk_buff *skb,
|
|||
struct in_device *out_dev;
|
||||
unsigned int flags = 0;
|
||||
__be32 spec_dst;
|
||||
u32 itag;
|
||||
u32 itag = 0;
|
||||
|
||||
/* get a working reference to the output device */
|
||||
out_dev = __in_dev_get_rcu(FIB_RES_DEV(*res));
|
||||
|
|
Loading…
Reference in a new issue