vfio/spapr: Fix missing mutex unlock when creating a window
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 1 Feb 2017 03:26:16 +0000 (14:26 +1100)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 1 Feb 2017 16:48:34 +0000 (09:48 -0700)
commit2da64d20a0b20046d688e44f4033efd09157e29d
tree44d2bca16b1b26dd2d06254940ba213847bea7b4
parent566cf877a1fcb6d6dc0126b076aad062054c2637
vfio/spapr: Fix missing mutex unlock when creating a window

Commit d9c728949ddc ("vfio/spapr: Postpone default window creation")
added an additional exit to the VFIO_IOMMU_SPAPR_TCE_CREATE case and
made it possible to return from tce_iommu_ioctl() without unlocking
container->lock; this fixes the issue.

Fixes: d9c728949ddc ("vfio/spapr: Postpone default window creation")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_spapr_tce.c