[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] amd/iommu: add missing unlock in iommu_read_log


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Wed, 19 Feb 2020 12:19:04 +0100
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 19 Feb 2020 11:19:26 +0000
  • Ironport-sdr: o+xzUE+b2cn1zOnk0HiVy1FvWH37BAQBzaqStpUw6aGMNbRlaJ0On8dmxatp7wzW4MvwpZwlhJ evJji6bAaSUQafVI/mzLj1QrMiG42DEpcfu53TnTURLreJd3zScXMj2+FK1COjmhUvhPyUYjcU FHsWIIw8a9vgPDLYJlrs+8Kkfsxn9uim2icMxAV3IDsjhwxldIq6c4fQRtQKPp4rv4HPGUj3je RcztMy51pZgLT4o4CJNeXpyTpZP+QQma9Qm2NMtC7z2l6Lif3HHmfokE+DRDitzTSYe+pTxGN3 bf8=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Reported-by: Coverity
CID: 1458632
Fixes: 709d3ddea2d5e ('AMD/IOMMU: Common the #732/#733 errata handling in 
iommu_read_log()')
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
 xen/drivers/passthrough/amd/iommu_init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/drivers/passthrough/amd/iommu_init.c 
b/xen/drivers/passthrough/amd/iommu_init.c
index 4c86848c52..e93a090830 100644
--- a/xen/drivers/passthrough/amd/iommu_init.c
+++ b/xen/drivers/passthrough/amd/iommu_init.c
@@ -338,6 +338,7 @@ static int iommu_read_log(struct amd_iommu *iommu,
             {
                 AMD_IOMMU_DEBUG("AMD-Vi: No entry written to %s Log\n",
                                 log == &iommu->event_log ? "Event" : "PPR");
+                spin_unlock(&log->lock);
                 return 0;
             }
             udelay(1);
-- 
2.25.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.