net: lwtunnel: Handle lwtunnel_fill_encap failure
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 11 Jan 2017 22:29:54 +0000 (14:29 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Feb 2017 08:47:08 +0000 (09:47 +0100)
commit6980c52c4efb951c972409ebd146cfc348144918
treedac55bb122db1cd2e4ba452425726dd883e96c91
parentec1aa8d495326435d956af325391b775038daa08
net: lwtunnel: Handle lwtunnel_fill_encap failure

[ Upstream commit ea7a80858f57d8878b1499ea0f1b8a635cc48de7 ]

Handle failure in lwtunnel_fill_encap adding attributes to skb.

Fixes: 571e722676fe ("ipv4: support for fib route lwtunnel encap attributes")
Fixes: 19e42e451506 ("ipv6: support for fib route lwtunnel encap attributes")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/fib_semantics.c
net/ipv6/route.c