Commit 2df96af0 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

[IPV6]: Use BUG_ON instead of if + BUG in fib6_del_route.

Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9937ded8
...@@ -1151,7 +1151,7 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp, ...@@ -1151,7 +1151,7 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp,
fn = fn->parent; fn = fn->parent;
} }
/* No more references are possible at this point. */ /* No more references are possible at this point. */
if (atomic_read(&rt->rt6i_ref) != 1) BUG(); BUG_ON(atomic_read(&rt->rt6i_ref) != 1);
} }
inet6_rt_notify(RTM_DELROUTE, rt, info); inet6_rt_notify(RTM_DELROUTE, rt, info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment