linux/drivers/iommu/amd
Ashish Kalra 45ba5b3c0a iommu/amd: Fix failure return from snp_lookup_rmpentry()
Commit

  f366a8dac1: ("iommu/amd: Clean up RMP entries for IOMMU pages during SNP shutdown")

leads to the following Smatch static checker warning:

  drivers/iommu/amd/init.c:3820 iommu_page_make_shared() error: uninitialized symbol 'assigned'.

Fix it.

  [ bp: Address the other error cases too. ]

Fixes: f366a8dac1 ("iommu/amd: Clean up RMP entries for IOMMU pages during SNP shutdown")
Closes: https://lore.kernel.org/linux-iommu/1be69f6a-e7e1-45f9-9a74-b2550344f3fd@moroto.mountain
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Joerg Roedel <jroedel@suse.com>
Link: https://lore.kernel.org/lkml/20240126041126.1927228-20-michael.roth@amd.com
2024-02-07 17:27:03 +01:00
..
amd_iommu_types.h iommu/amd: Rename iommu_flush_all_caches() -> amd_iommu_flush_all_caches() 2023-12-11 15:25:33 +01:00
amd_iommu.h iommu/amd: Don't rely on external callers to enable IOMMU SNP support 2024-01-29 17:19:28 +01:00
debugfs.c
init.c iommu/amd: Fix failure return from snp_lookup_rmpentry() 2024-02-07 17:27:03 +01:00
io_pgtable_v2.c iommu/amd/pgtbl_v2: Invalidate updated page ranges only 2023-12-11 15:25:38 +01:00
io_pgtable.c iommu/amd: Make domain_flush_pages as global function 2023-12-11 15:25:37 +01:00
iommu.c IOMMU Updates for Linux v6.8 2024-01-18 15:16:57 -08:00
Kconfig IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
Makefile iommu/amd: Remove iommu_v2 module 2023-10-06 16:01:52 +02:00
quirks.c iommu/amd: Include PCI segment ID when initialize IOMMU 2022-07-07 09:37:51 +02:00