]> err.no Git - linux-2.6/commit
ipv4: fib_trie: Fix lookup error return
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 10 Jul 2008 23:52:52 +0000 (16:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jul 2008 23:52:52 +0000 (16:52 -0700)
commit2e655571c618434c24ac2ca989374fdd84470d6d
treebf339af1fa392043afa9780d8f08e25ac6358a70
parent3d8ea1fd7001f39b5cc0ad2ff51696292ea3cfbf
ipv4: fib_trie: Fix lookup error return

In commit a07f5f508a4d9728c8e57d7f66294bf5b254ff7f "[IPV4] fib_trie: style
cleanup", the changes to check_leaf() and fn_trie_lookup() were wrong - where
fn_trie_lookup() would previously return a negative error value from
check_leaf(), it now returns 0.

Now fn_trie_lookup() doesn't appear to care about plen, so we can revert
check_leaf() to returning the error value.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Tested-by: William Boughton <bill@boughton.de>
Acked-by: Stephen Heminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c