summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiang Liu2012-12-07 21:43:51 +0100
committerAlex Williamson2012-12-07 21:43:51 +0100
commit05bf3aac930752408bf38a3f070061fc5f1b9c73 (patch)
treeb8b158154f60e5f7645033b4daf8a7d29deff99e
parentVFIO: use ACCESS_ONCE() to guard access to dev->driver (diff)
downloadkernel-qcow2-linux-05bf3aac930752408bf38a3f070061fc5f1b9c73.tar.gz
kernel-qcow2-linux-05bf3aac930752408bf38a3f070061fc5f1b9c73.tar.xz
kernel-qcow2-linux-05bf3aac930752408bf38a3f070061fc5f1b9c73.zip
VFIO: fix out of order labels for error recovery in vfio_pci_init()
The two labels for error recovery in function vfio_pci_init() is out of order, so fix it. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r--drivers/vfio/pci/vfio_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
index b179f5a357f6..306b90cf051f 100644
--- a/drivers/vfio/pci/vfio_pci.c
+++ b/drivers/vfio/pci/vfio_pci.c
@@ -576,9 +576,9 @@ static int __init vfio_pci_init(void)
return 0;
-out_virqfd:
- vfio_pci_virqfd_exit();
out_driver:
+ vfio_pci_virqfd_exit();
+out_virqfd:
vfio_pci_uninit_perm_bits();
return ret;
}