mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-28 20:44:00 +08:00
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>
This commit is contained in:
parent
20da4ef91c
commit
04087d9a89
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user