VFIO: fix out of order labels for error recovery in vfio_pci_init()
authorJiang Liu <liuj97@gmail.com>
Fri, 7 Dec 2012 20:43:51 +0000 (13:43 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 7 Dec 2012 20:43:51 +0000 (13:43 -0700)
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>
drivers/vfio/pci/vfio_pci.c

index b179f5a..306b90c 100644 (file)
@@ -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;
 }