fib:fix BUG_ON in fib_nl_newrule when add new fib rule
authorGao feng <gaofeng@cn.fujitsu.com>
Sun, 11 Sep 2011 15:36:05 +0000 (15:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2011 19:16:40 +0000 (15:16 -0400)
add new fib rule can cause BUG_ON happen
the reproduce shell is
ip rule add pref 38
ip rule add pref 38
ip rule add to 192.168.3.0/24 goto 38
ip rule del pref 38
ip rule add to 192.168.3.0/24 goto 38
ip rule add pref 38

then the BUG_ON will happen
del BUG_ON and use (ctarget == NULL) identify whether this rule is unresolved

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found