diff options
author | Alexander Duyck <aduyck@mirantis.com> | 2015-10-30 00:21:20 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-10-30 23:15:02 +0300 |
commit | c23b613507b8fa10e1839fb5a42e1b0318bf1d27 (patch) | |
tree | ff0c75027f5d1d69dc524730fb41c23af52c0f57 /drivers/pci/host | |
parent | b390864482924a21f8d7e25636d0140de93fba7e (diff) | |
download | linux-c23b613507b8fa10e1839fb5a42e1b0318bf1d27.tar.xz |
PCI: Fix sriov_enable() error path for pcibios_enable_sriov() failures
Disable VFs if pcibios_enable_sriov() fails, just like we do for other
errors in sriov_enable(). Call pcibios_sriov_disable() if virtfn_add()
fails.
[bhelgaas: changelog, split to separate patch for reviewability]
Fixes: 995df527f399 ("PCI: Add pcibios_sriov_enable() and pcibios_sriov_disable()")
Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/pci/host')
0 files changed, 0 insertions, 0 deletions