projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9937ded
)
[IPV6]: Use BUG_ON instead of if + BUG in fib6_del_route.
author
Pavel Emelyanov
<xemul@openvz.org>
Tue, 19 Feb 2008 04:50:42 +0000
(20:50 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Feb 2008 04:50:42 +0000
(20:50 -0800)
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ip6_fib.c
b/net/ipv6/ip6_fib.c
index f93407cf651511ea9d4fa22b9c3f0f9ce94085fe..bab72b6f14444f9701d830ff6d93f009bb753926 100644
(file)
--- a/
net/ipv6/ip6_fib.c
+++ b/
net/ipv6/ip6_fib.c
@@
-1151,7
+1151,7
@@
static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp,
fn = fn->parent;
}
/* 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);