commit | 7cf9c069430fce7142da7039cc453902df11259b | [log] [tgz] |
---|---|---|
author | Huazhong Tan <tanhuazhong@huawei.com> | Thu Jun 20 16:52:43 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 26 11:59:02 2019 -0400 |
tree | ab1d1375355997dac7794ae5cdaaad265de13671 | |
parent | 987b4ae78e4268d22b279f65d80cc541f9f0eb53 [diff] |
net: hns3: fix race conditions between reset and module loading & unloading When loading or unloading module, it should wait for the reset task done before it un-initializes the client, otherwise the reset task may cause a NULL pointer reference. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>