From: "Jan Beulich" Subject: [PATCH] IOMMU: release lock on new exit path Date: Mon, 07 Nov 2016 08:29:15 -0700 Message-ID: <5820ABDB020000780011CC2F@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part566F23DB.1__=" Return-path: Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3lrl-0002rb-J4 for xen-devel@lists.xenproject.org; Mon, 07 Nov 2016 15:29:45 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel Cc: Andrew Cooper , Wei Liu List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part566F23DB.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This was overlooked in 7b2842a414 ("IOMMU: replace ASSERT()s checking for NULL"). Reported-by: Konrad Rzeszutek Wilk Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -168,6 +168,7 @@ static void pt_irq_time_out(void *data) if ( unlikely(!dpci) ) { ASSERT_UNREACHABLE(); + spin_unlock(&irq_map->dom->event_lock); return; } list_for_each_entry ( digl, &irq_map->digl_list, list ) --=__Part566F23DB.1__= Content-Type: text/plain; name="IOMMU-dpci-assert-unlock.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="IOMMU-dpci-assert-unlock.patch" IOMMU: release lock on new exit path=0A=0AThis was overlooked in 7b2842a414= ("IOMMU: replace ASSERT()s checking=0Afor NULL").=0A=0AReported-by: = Konrad Rzeszutek Wilk =0ASigned-off-by: Jan = Beulich =0A=0A--- a/xen/drivers/passthrough/io.c=0A+++ = b/xen/drivers/passthrough/io.c=0A@@ -168,6 +168,7 @@ static void pt_irq_tim= e_out(void *data)=0A if ( unlikely(!dpci) )=0A {=0A = ASSERT_UNREACHABLE();=0A+ spin_unlock(&irq_map->dom->event_lock);=0A= return;=0A }=0A list_for_each_entry ( digl, &irq_map->digl= _list, list )=0A --=__Part566F23DB.1__= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --=__Part566F23DB.1__=--