From: "Jan Beulich" Subject: [PATCH] passthrough: fix domain ref leak after 24888:71159fb049f2 Date: Wed, 07 Mar 2012 09:41:43 +0000 Message-ID: <4F573B670200007800076DC4@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part1A340F47.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel 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. --=__Part1A340F47.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline As pointed out by Keir. Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -580,6 +580,8 @@ int iommu_do_domctl( printk(XENLOG_G_ERR "XEN_DOMCTL_assign_device: get_domain_by_id() = failed\n"); ret =3D -EINVAL; + if ( d ) + goto assign_device_out; break; } =20 --=__Part1A340F47.0__= Content-Type: text/plain; name="passthrough-fix-24888.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="passthrough-fix-24888.patch" passthrough: fix domain ref leak after 24888:71159fb049f2=0A=0AAs pointed = out by Keir.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/xen/drivers/passthrough/iommu.c=0A+++ b/xen/drivers/passthrough/iommu.c= =0A@@ -580,6 +580,8 @@ int iommu_do_domctl(=0A printk(XENLOG_G_= ERR=0A "XEN_DOMCTL_assign_device: get_domain_by_id() = failed\n");=0A ret =3D -EINVAL;=0A+ if ( d )=0A+ = goto assign_device_out;=0A break;=0A }=0A = =0A --=__Part1A340F47.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part1A340F47.0__=--