]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: Fix missing unlock on error in arm_smmu_device_group()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 20 Aug 2021 07:49:49 +0000 (15:49 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 20 Aug 2021 12:35:09 +0000 (14:35 +0200)
commita64e3f0a1ffd4c1bee561666474eae5410791858
treed7a23ee813973875d9fd32dab56edd21433a1c3f
parentcc837cdf430bf29b6877a253b128403d40ed0df8
iommu/arm-smmu: Fix missing unlock on error in arm_smmu_device_group()

Add the missing unlock before return from function arm_smmu_device_group()
in the error handling case.

Fixes: 898eeabe05ba ("iommu/arm-smmu: Fix race condition during iommu_group creation")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210820074949.1946576-1-yangyingliang@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu/arm-smmu.c