summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorVasant Hegde <vasant.hegde@amd.com>2026-05-17 15:29:25 +0300
committerJoerg Roedel <joerg.roedel@amd.com>2026-05-28 10:28:58 +0300
commit283d245468a2b61c41aa8b582f25ed5615d1c304 (patch)
tree33275c93861a793ff6cccc7157ac7988116bcdd9 /include/linux/workqueue_api.h
parentc6580699ffcd44941eaec895d6b5cc2c338d27bd (diff)
downloadlinux-283d245468a2b61c41aa8b582f25ed5615d1c304.tar.xz
iommu/amd: Fix premature break in init_iommu_one()
In init_iommu_one(), when processing IOMMU EFR attributes, the code checks whether GASUP is enabled. If GASUP is not enabled, the code falls back to legacy guest IR mode and then breaks out of the switch statement. This break incorrectly skips the subsequent initialization steps that follow the GASUP check. These initializations are independent of GASUP support and must always be performed. Fix this by replacing the early break with a conditional else block, ensuring that the XTSUP check is only skipped when GASUP is not available. Fixes: a44092e326d4 ("iommu/amd: Use IVHD EFR for early initialization of IOMMU features") Reported-by: Sudheer Dantuluri <dantuluris@google.com> Tested-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions