diff options
author | Alexander Duyck <aduyck@mirantis.com> | 2015-10-29 16:21:05 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-10-30 15:14:00 -0500 |
commit | 3443c38205330bc5783a516ef1d0b6f182ee9a85 (patch) | |
tree | 7cf2f33097b52949218d1d5c6292938695394f97 /block | |
parent | ce288ec380380f3ab0e3c631b9c2f598835a3f38 (diff) | |
download | linux-3443c38205330bc5783a516ef1d0b6f182ee9a85.tar.gz |
PCI: Remove VFs in reverse order if virtfn_add() fails
If virtfn_add() fails, we call virtfn_remove() for any previously added devices. Remove the devices in reverse order (first-added is last-removed), which is more natural and doesn't require an additional variable. [bhelgaas: changelog, split to separate patch for reviewability] 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 'block')
0 files changed, 0 insertions, 0 deletions