]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca3260de25ba993b30d4ba78e0833b26c8366ecc
tree44d2bca16b1b26dd2d06254940ba213847bea7b4
parenta2323382aa4d62abf3cb3d164d2fc4212fb7f298
vfio/spapr: Fix missing mutex unlock when creating a window

Commit c2571f055213 ("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: c2571f055213 ("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