iommu/ipmmu-vmsa: Fix wrong error handle of ipmmu_add_device
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 24 Aug 2016 02:23:51 +0000 (10:23 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 5 Sep 2016 10:53:58 +0000 (12:53 +0200)
commitb1e2afca635bb01f93ecd8112c265b980f1abc08
tree8bc0ef383737b5711dc9fc6385548f2a10c49ad3
parentc6935931c1894ff857616ff8549b61236a19148f
iommu/ipmmu-vmsa: Fix wrong error handle of ipmmu_add_device

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 <shawn.lin@rock-chips.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c