projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a058bc
)
passthrough: fix domain ref leak after 24888:71159fb049f2
author
Jan Beulich
<jbeulich@suse.com>
Wed, 7 Mar 2012 09:59:18 +0000
(10:59 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 7 Mar 2012 09:59:18 +0000
(10:59 +0100)
As pointed out by Keir.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/passthrough/iommu.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/iommu.c
b/xen/drivers/passthrough/iommu.c
index 890cb81cdbbb940ca4f4cf40db6a70fa20b2c7ea..82488d3e9f132181fb6e1fdbd09b508d79e9b042 100644
(file)
--- 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;
}