]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Handle error path in amd_iommu_probe_device()
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 28 Aug 2024 11:10:25 +0000 (11:10 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Sep 2024 09:35:55 +0000 (11:35 +0200)
commit293aa9ec694e633bff83ab93715a2684e15fe214
tree4b0acc17a75fcfbf62bd356502c01523ae9f75d4
parent95eb6a05124f9a206f009a21c9a0a9f320859b6c
iommu/amd: Handle error path in amd_iommu_probe_device()

Do not try to set max_pasids in error path as dev_data is not allocated.

Fixes: a0c47f233e68 ("iommu/amd: Introduce iommu_dev_data.max_pasids")
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20240828111029.5429-5-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c