ipv4: make sure nh_pcpu_rth_output is always allocated
authorJulian Anastasov <ja@ssi.bg>
Mon, 8 Oct 2012 11:41:17 +0000 (11:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 21:42:35 +0000 (17:42 -0400)
commitf8a17175c63fd3e8b573719f7538816f8c96abf4
tree5f592b7613c48716dc1a88bfd688129d24e62324
parente0adef0f7456d5d3a3bfe8ea61c7dddf146b40e1
ipv4: make sure nh_pcpu_rth_output is always allocated

Avoid checking nh_pcpu_rth_output in fast path,
abort fib_info creation on alloc_percpu failure.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c
net/ipv4/route.c