]> 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:43:38 +0000 (06:43 -0700)
commit3f52cbfe83967fbef59e8e174764409d0539ea5e
tree83afd5fd2beb2e465df1d05faa14f5693b513949
parent9cc0b2b5877fd9292be2f74b7265fa36fabaf7a3
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