summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2018-10-02 06:22:31 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-12-20 14:59:03 +0300
commit517ad4ae8aa93dccdb9a88c27257ecb421c9e848 (patch)
tree0e1d6ad31313e7019b383580472832604b074f1a /crypto
parentfa1ada78897f282917594ba8eba220a54f87dabb (diff)
downloadlinux-517ad4ae8aa93dccdb9a88c27257ecb421c9e848.tar.xz
vfio/spapr_tce: Get rid of possible infinite loop
As a part of cleanup, the SPAPR TCE IOMMU subdriver releases preregistered memory. If there is a bug in memory release, the loop in tce_iommu_release() becomes infinite; this actually happened to me. This makes the loop finite and prints a warning on every failure to make the code more bug prone. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions