Searched hist:"5 d1d43b0" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iommu/ |
H A D | mtk_iommu_v1.c | 5d1d43b0 Fri Nov 11 11:59:25 CST 2016 Robin Murphy <robin.murphy@arm.com> iommu/mediatek: Fix M4Uv1 group refcounting
For each subsequent device assigned to the m4u_group after its initial allocation, we need to take an additional reference. 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.
Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> 5d1d43b0 Fri Nov 11 11:59:25 CST 2016 Robin Murphy <robin.murphy@arm.com> iommu/mediatek: Fix M4Uv1 group refcounting For each subsequent device assigned to the m4u_group after its initial allocation, we need to take an additional reference. 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. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
|