]> 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)
commit1fafd2f41d6ac9f9a68b34bb4708171c2745c519
tree44d2bca16b1b26dd2d06254940ba213847bea7b4
parentaf3594dc652d27a1be9786fb22f7c0db391f6673
vfio/spapr: Fix missing mutex unlock when creating a window

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