linux-stable/drivers/iommu/amd
Nadav Amit a017c56791 iommu/amd: Fix wrong parentheses on page-specific invalidations
The logic to determine the mask of page-specific invalidations was
tested in userspace. As the code was copied into the kernel, the
parentheses were mistakenly set in the wrong place, resulting in the
wrong mask.

Fix it.

Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Jiajun Cao <caojiajun@vmware.com>
Cc: iommu@lists.linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Fixes: 268aa45482 ("iommu/amd: Page-specific invalidations for more than one page")
Signed-off-by: Nadav Amit <namit@vmware.com>
Link: https://lore.kernel.org/r/20210502070001.1559127-2-namit@vmware.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-05-18 11:21:28 +02:00
..
amd_iommu.h iommu/amd: Move a few prototypes to include/linux/amd-iommu.h 2021-04-07 11:14:55 +02:00
amd_iommu_types.h iommu/amd: Remove the unused device errata code 2021-04-07 11:14:43 +02:00
debugfs.c
init.c iommu: Streamline registration interface 2021-04-16 17:20:45 +02:00
io_pgtable.c iommu/amd: Fix sleeping in atomic in increase_address_space() 2021-03-04 13:15:56 +01:00
iommu.c iommu/amd: Fix wrong parentheses on page-specific invalidations 2021-05-18 11:21:28 +02:00
iommu_v2.c iommu/amd: Use DEFINE_SPINLOCK() for spinlock 2021-01-27 12:41:11 +01:00
Kconfig iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
Makefile iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
quirks.c