Re: [PATCH v2] iommu/ipmmu-vmsa: Fix wrong error handle of ipmmu_add_device

2016-09-05 Thread Joerg Roedel
On Wed, Aug 24, 2016 at 10:23:51AM +0800, Shawn Lin wrote: > Let's fix the error handle of ipmmu_add_device > when failing to find utlbs, otherwise we take a > risk of pontential memleak. > > Signed-off-by: Shawn Lin > > --- > > Changes in v2: > - use error-out path > > drivers/iommu/ipmmu-vm

[PATCH v2] iommu/ipmmu-vmsa: Fix wrong error handle of ipmmu_add_device

2016-08-23 Thread Shawn Lin
Let's fix the error handle of ipmmu_add_device when failing to find utlbs, otherwise we take a risk of pontential memleak. Signed-off-by: Shawn Lin --- Changes in v2: - use error-out path drivers/iommu/ipmmu-vmsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/io