]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: add protect when handling mac addr list
authorJian Shen <shenjian15@huawei.com>
Thu, 4 Apr 2019 08:17:55 +0000 (16:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:10 +0000 (06:45 -0700)
commitb6d75e4f89c054357d0b038868e87206c54a4824
tree743b3ec94445ccf7e7b77b7902cbbb2434945f37
parentcee70979bd4c7ec0832b2f4cdd15385e78a791d4
net: hns3: add protect when handling mac addr list

[ Upstream commit 389775a6605e040dddea21a778a88eaaa57c068d ]

It used netdev->uc and netdev->mc list in function
hns3_recover_hw_addr() and hns3_remove_hw_addr().
We should add protect for them.

Fixes: f05e21097121 ("net: hns3: Clear mac vlan table entries when unload driver or function reset")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c