]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Fix wrong parentheses on page-specific invalidations
authorNadav Amit <namit@vmware.com>
Sun, 2 May 2021 06:59:56 +0000 (23:59 -0700)
committerJoerg Roedel <jroedel@suse.de>
Tue, 18 May 2021 09:21:28 +0000 (11:21 +0200)
commita5a6c79b48cfbab076a75c2454d06ba0b0e9686a
tree4cc7d736e16cc3a49095ed75d57ef1faf5dea0e8
parent14c7b9578099da8cc583e031ab9b512ee7306add
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: 7e1a76ab4b14 ("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>
drivers/iommu/amd/iommu.c