diff options
author | Li RongQing <lirongqing@baidu.com> | 2018-11-08 20:40:20 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-08 17:14:59 -0800 |
commit | 04087d9a89bef97998c71c21e3ecfca0cc7c52f3 (patch) | |
tree | 4f03817172a8888238e20f18b62ba82774ad22c2 /net/openvswitch | |
parent | 20da4ef91cb9335d7dcef6f1546dc31c455081f2 (diff) | |
download | linux-04087d9a89bef97998c71c21e3ecfca0cc7c52f3.tar.bz2 |
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>
Diffstat (limited to 'net/openvswitch')
-rw-r--r-- | net/openvswitch/vport-netdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 2e5e7a41d8ef..9bec22e3e9e8 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; } |