diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2014-09-29 17:18:39 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2014-09-29 17:18:39 -0600 |
commit | 93899a679fd6b2534b5c297d9316bae039ebcbe1 (patch) | |
tree | 99679fe7f8afc70254c5ff9f0d202028911ccad4 /crypto/ablkcipher.c | |
parent | drivers/vfio: Export vfio_spapr_iommu_eeh_ioctl() with GPL (diff) | |
download | linux-dev-93899a679fd6b2534b5c297d9316bae039ebcbe1.tar.xz linux-dev-93899a679fd6b2534b5c297d9316bae039ebcbe1.zip |
vfio-pci: Fix remove path locking
Locking both the remove() and release() path results in a deadlock
that should have been obvious. To fix this we can get and hold the
vfio_device reference as we evaluate whether to do a bus/slot reset.
This will automatically block any remove() calls, allowing us to
remove the explict lock. Fixes 61d792562b53.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: stable@vger.kernel.org [3.17]
Diffstat (limited to 'crypto/ablkcipher.c')
0 files changed, 0 insertions, 0 deletions