passthrough: fix domain ref leak after 24888:71159fb049f2
PATCH 1/1 passthrough: fix domain ref leak after 24888:71159fb049f2
As pointed out by Keir.
Signed-off-by Jan Beulich <[email protected]>
xen/drivers/passthrough/iommu.c +2 -0
@@ -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 ; }
passthrough: fix domain ref leak after 24888:71159fb049f2
As pointed out by Keir.
Signed-off-by Jan Beulich <[email protected]>
xen/drivers/passthrough/iommu.c +2 -0
@@ -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 ; }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 3 lines · Jan Beulich
As pointed out by Keir.
Signed-off-by Jan Beulich <[email protected]>
Acked-by Keir Fraser <[email protected]>
Quoted 18 lines
xen/drivers/passthrough/iommu.c +2
-0@@ -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 ; }_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel