x86/mm/iommu/sva: Fix error code for LAM enabling failure due to SVA
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Mon, 3 Apr 2023 11:10:19 +0000 (14:10 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 6 Apr 2023 20:44:58 +0000 (13:44 -0700)
commitfca1fdd2b0a6fcd491ec520afac80bc72b4c811e
treec312250ce3910a2dfdfc7e94893179a763368450
parentdfd7a1569e25996575a24725b64f73162155bcd6
x86/mm/iommu/sva: Fix error code for LAM enabling failure due to SVA

Normally, LAM and SVA are mutually exclusive. LAM enabling will fail if
SVA is already in use.

Correct error code for the failure. EINTR is nonsensical there.

Fixes: 23e5d9ec2bab ("x86/mm/iommu/sva: Make LAM and SVA mutually exclusive")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Link: https://lore.kernel.org/all/CACT4Y+YfqSMsZArhh25TESmG-U4jO5Hjphz87wKSnTiaw2Wrfw@mail.gmail.com
Link: https://lore.kernel.org/all/20230403111020.3136-2-kirill.shutemov%40linux.intel.com
arch/x86/kernel/process_64.c