mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 17:26:47 -04: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:
committed by
David S. Miller
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);
|
||||
|
||||
Reference in New Issue
Block a user