mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-14 09:44:35 +08:00
qlcnic: Fix SR-IOV cleanup code path
o Add __QLCNIC_SRIOV_ENABLE bit check before doing SRIOV cleanup Signed-off-by: Manish Chopra <manish.chopra@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a04315893d
commit
6e1f586d31
@ -277,9 +277,7 @@ static void qlcnic_sriov_vf_cleanup(struct qlcnic_adapter *adapter)
|
||||
|
||||
void qlcnic_sriov_cleanup(struct qlcnic_adapter *adapter)
|
||||
{
|
||||
struct qlcnic_sriov *sriov = adapter->ahw->sriov;
|
||||
|
||||
if (!sriov)
|
||||
if (!test_bit(__QLCNIC_SRIOV_ENABLE, &adapter->state))
|
||||
return;
|
||||
|
||||
qlcnic_sriov_free_vlans(adapter);
|
||||
|
Loading…
Reference in New Issue
Block a user