Skip to content
Snippets Groups Projects
Commit 04087d9a authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

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: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 20da4ef9
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,6 @@ static struct net_device *get_dpdev(const struct datapath *dp) ...@@ -84,7 +84,6 @@ static struct net_device *get_dpdev(const struct datapath *dp)
struct vport *local; struct vport *local;
local = ovs_vport_ovsl(dp, OVSP_LOCAL); local = ovs_vport_ovsl(dp, OVSP_LOCAL);
BUG_ON(!local);
return local->dev; return local->dev;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment