]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/arm-smmu-v3: Revert vmaster in the error path
authorNicolin Chen <nicolinc@nvidia.com>
Fri, 11 Jul 2025 20:40:20 +0000 (13:40 -0700)
committerWill Deacon <will@kernel.org>
Mon, 14 Jul 2025 11:15:18 +0000 (12:15 +0100)
commit49f42634e8054e57d09c7f9ef5e4527e116059cb
tree36b75cd8c17043a162200815ee5c039a7526a0b0
parentec7ca73144e9ca98ed278523b9bf30e1c775c0a9
iommu/arm-smmu-v3: Revert vmaster in the error path

The error path for err_free_master_domain leaks the vmaster. Move all
the kfrees for vmaster into the goto error section.

Fixes: cfea71aea921 ("iommu/arm-smmu-v3: Put iopf enablement in the domain attach path")
Cc: stable@vger.kernel.org
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Link: https://lore.kernel.org/r/20250711204020.1677884-1-nicolinc@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c