Skip to content

Commit

Permalink
VFIO: fix out of order labels for error recovery in vfio_pci_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiang Liu authored and Alex Williamson committed Dec 7, 2012
1 parent de2b3ee commit 05bf3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/vfio/pci/vfio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05bf3aa

Please sign in to comment.