Skip to content

Commit 04087d9

Browse files
lrq-maxdavem330
authored andcommitted
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 <lirongqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 20da4ef commit 04087d9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/openvswitch/vport-netdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static struct net_device *get_dpdev(const struct datapath *dp)
8484
struct vport *local;
8585

8686
local = ovs_vport_ovsl(dp, OVSP_LOCAL);
87-
BUG_ON(!local);
8887
return local->dev;
8988
}
9089

0 commit comments

Comments
 (0)