diff options
author | Jian Shen <shenjian15@huawei.com> | 2022-03-24 20:54:49 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-03-25 16:37:45 -0700 |
commit | 1932a624ab88ff407d1a1d567fe581faa15dc725 (patch) | |
tree | 92ce8bd5cb7204cb646a3f6f5b3cc7d6ff20d201 /fs/sysv | |
parent | c0f46de30c965d4ba208b5bf1a6d3437a7556ee2 (diff) | |
download | linux-1932a624ab88ff407d1a1d567fe581faa15dc725.tar.bz2 |
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 'fs/sysv')
0 files changed, 0 insertions, 0 deletions