projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20da4ef
)
openvswitch: remove BUG_ON from get_dpdev
author
Li RongQing
<lirongqing@baidu.com>
Thu, 8 Nov 2018 12:40:20 +0000
(20:40 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 9 Nov 2018 01:14:59 +0000
(17:14 -0800)
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>
net/openvswitch/vport-netdev.c
patch
|
blob
|
history
diff --git
a/net/openvswitch/vport-netdev.c
b/net/openvswitch/vport-netdev.c
index
2e5e7a4
..
9bec22e
100644
(file)
--- 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;
}