Robin Murphy e1b44cbe7b iommu/arm-smmu: Fix group refcounting
When arm_smmu_device_group() finds an existing group due to Stream ID
aliasing, it should be taking an additional reference on that group.
Otherwise, the caller of iommu_group_get_for_dev() will inadvertently
remove the reference taken by iommu_group_add_device(), and the group
will be freed prematurely if any device is removed.

Reported-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2016-11-15 12:25:33 +01:00
..
2016-10-06 10:49:01 -07:00
2016-08-01 07:25:10 -04:00
2016-10-11 12:52:41 -07:00
2016-08-01 07:25:10 -04:00
2015-02-03 18:47:18 +01:00
2016-02-16 08:04:06 -08:00
2016-06-21 13:56:00 +02:00
2016-09-16 09:34:15 +01:00