fib_trie: handle empty tree
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 12 Feb 2008 05:12:49 +0000 (21:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2008 01:53:30 +0000 (17:53 -0800)
commitec28cf738d899e9d0652108e1986101771aacb2e
treee848267fc6f9946075a0440be8b0a8ac6ef0c58a
parente4f8b5d4edc1edb0709531bd1a342655d5e8b98e
fib_trie: handle empty tree

This fixes possible problems when trie_firstleaf() returns NULL
to trie_leafindex().

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c