diff options
author | Li RongQing <lirongqing@baidu.com> | 2018-11-12 17:28:22 +0800 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-11-22 07:55:48 +0100 |
commit | 3fcccec008cf095ac61018cfce0e4bb76edddb5b (patch) | |
tree | a308639519a0f1aa8d165c0e0b1c9a7321135ad7 /net/ipv6 | |
parent | 39aa6928d462d0f4fd809ff8109f98f24843b28b (diff) | |
download | blackbird-obmc-linux-3fcccec008cf095ac61018cfce0e4bb76edddb5b.tar.gz blackbird-obmc-linux-3fcccec008cf095ac61018cfce0e4bb76edddb5b.zip |
xfrm6: remove BUG_ON from xfrm6_dst_ifdown
if loopback_idev is NULL pointer, and the following access of
loopback_idev will trigger panic, which is same as BUG_ON
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index d35bcf92969c..769f8f78d3b8 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c @@ -262,7 +262,6 @@ static void xfrm6_dst_ifdown(struct dst_entry *dst, struct net_device *dev, if (xdst->u.rt6.rt6i_idev->dev == dev) { struct inet6_dev *loopback_idev = in6_dev_get(dev_net(dev)->loopback_dev); - BUG_ON(!loopback_idev); do { in6_dev_put(xdst->u.rt6.rt6i_idev); |