Commit 293aa9e
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: a0c47f2 ("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>1 parent 95eb6a0 commit 293aa9e
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2187 | 2187 | | |
2188 | 2188 | | |
2189 | 2189 | | |
2190 | | - | |
2191 | | - | |
2192 | | - | |
| 2190 | + | |
2193 | 2191 | | |
2194 | 2192 | | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2195 | 2196 | | |
2196 | 2197 | | |
2197 | 2198 | | |
| |||
2203 | 2204 | | |
2204 | 2205 | | |
2205 | 2206 | | |
| 2207 | + | |
2206 | 2208 | | |
2207 | 2209 | | |
2208 | 2210 | | |
| |||
0 commit comments