]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: drop metadata dst in ip6_route_input
authorJiri Benc <jbenc@redhat.com>
Thu, 20 Aug 2015 11:56:26 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 22:42:36 +0000 (15:42 -0700)
commit4c439e95e13dc7f4bed1a893f62080b4d248ff37
treef2065d0dd27be5af8f3eb7e7e1a086c8fbb1fcac
parentd8750ebc53a9d9495b5525c1c2530e4955298255
ipv6: drop metadata dst in ip6_route_input

The fix in commit c9daf37b61d4 is incomplete, as now ip6_route_input can be
called with non-NULL dst if it's a metadata dst and the reference is leaked.
Drop the reference.

Fixes: c9daf37b61d4 ("ipv6: fix crash over flow-based vxlan device")
Fixes: 90ef35c5364d ("vxlan: Flow based tunneling")
CC: Wei-Chun Chao <weichunc@plumgrid.com>
CC: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c