Eric Dumazet 1e31367899 ipv4: fix refcount leak in fib_check_nh()
fib_lookup() forces FIB_LOOKUP_NOREF flag, while fib_table_lookup()
does not.

This patch solves the typical message at reboot time or device
dismantle :

unregister_netdevice: waiting for eth0 to become free. Usage count = 4

Fixes: 3bfd847203c6 ("net: Use passed in table for nexthop lookups")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Ahern <dsa@cumulusnetworks.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-16 22:14:32 -07:00
..
2015-08-13 22:43:21 -07:00
2014-09-18 10:54:36 +02:00
2015-08-13 22:43:21 -07:00
2015-05-28 11:23:20 +08:00
2015-08-13 22:43:21 -07:00
2013-12-29 16:34:25 -05:00
2015-07-21 10:39:05 -07:00
2015-06-11 00:09:12 -07:00
2015-06-11 00:09:12 -07:00
2015-07-09 21:09:10 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2014-09-01 18:12:45 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2015-01-28 22:18:37 -08:00
2015-08-13 22:43:20 -07:00
2014-05-23 16:28:53 -04:00