diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-03-07 10:59:18 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-03-07 10:59:18 +0100 |
commit | e45066d3c3fff98ed502546bd3152541eab16b07 (patch) | |
tree | b3c5ada18910d1b214b6841fe4fb22a214b25883 /xen | |
parent | 8a058bcef741145b49df3b6321ad1f05f047af15 (diff) | |
download | xen-e45066d3c3fff98ed502546bd3152541eab16b07.tar.gz xen-e45066d3c3fff98ed502546bd3152541eab16b07.tar.bz2 xen-e45066d3c3fff98ed502546bd3152541eab16b07.zip |
passthrough: fix domain ref leak after 24888:71159fb049f2
As pointed out by Keir.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen')
-rw-r--r-- | xen/drivers/passthrough/iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index 890cb81cdb..82488d3e9f 100644 --- 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 = -EINVAL; + if ( d ) + goto assign_device_out; break; } |