diff options
author | Jian Shen <shenjian15@huawei.com> | 2022-03-24 15:54:49 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-03-26 02:37:45 +0300 |
commit | 1932a624ab88ff407d1a1d567fe581faa15dc725 (patch) | |
tree | 92ce8bd5cb7204cb646a3f6f5b3cc7d6ff20d201 /drivers/net/wireguard/peerlookup.h | |
parent | c0f46de30c965d4ba208b5bf1a6d3437a7556ee2 (diff) | |
download | linux-1932a624ab88ff407d1a1d567fe581faa15dc725.tar.xz |
net: hns3: add vlan list lock to protect vlan list
When adding port base VLAN, vf VLAN need to remove from HW and modify
the vlan state in vf VLAN list as false. If the periodicity task is
freeing the same node, it may cause "use after free" error.
This patch adds a vlan list lock to protect the vlan list.
Fixes: c6075b193462 ("net: hns3: Record VF vlan tables")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wireguard/peerlookup.h')
0 files changed, 0 insertions, 0 deletions