From: Li RongQing Date: Thu, 8 Nov 2018 12:40:20 +0000 (+0800) Subject: openvswitch: remove BUG_ON from get_dpdev X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=04087d9a89bef97998c71c21e3ecfca0cc7c52f3;p=linux.git openvswitch: remove BUG_ON from get_dpdev if local is NULL pointer, and the following access of local's dev will trigger panic, which is same as BUG_ON Signed-off-by: Li RongQing Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 2e5e7a41d8ef8..9bec22e3e9e8f 100644 --- a/net/openvswitch/vport-netdev.c +++ b/net/openvswitch/vport-netdev.c @@ -84,7 +84,6 @@ static struct net_device *get_dpdev(const struct datapath *dp) struct vport *local; local = ovs_vport_ovsl(dp, OVSP_LOCAL); - BUG_ON(!local); return local->dev; }