crypto: ccp - Fix uAPI definitions of PSP errors
authorDionna Glaze <dionnaglaze@google.com>
Sat, 8 Mar 2025 01:10:28 +0000 (12:10 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 15 Mar 2025 08:21:22 +0000 (16:21 +0800)
commitb949f55644a6d1645c0a71f78afabf12aec7c33b
tree894ee01cce8719e3dc2975777f6c6140cad310ac
parent52b3b329d8e589575d16d8d9adbca9e08041ee82
crypto: ccp - Fix uAPI definitions of PSP errors

Additions to the error enum after explicit 0x27 setting for
SEV_RET_INVALID_KEY leads to incorrect value assignments.

Use explicit values to match the manufacturer specifications more
clearly.

Fixes: 3a45dc2b419e ("crypto: ccp: Define the SEV-SNP commands")
CC: stable@vger.kernel.org
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/uapi/linux/psp-sev.h