diff options
author | Borislav Petkov (AMD) <bp@alien8.de> | 2023-02-15 13:39:41 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-03-13 13:27:10 +0300 |
commit | 970ab823743fb54b42002ec76c51481f67436444 (patch) | |
tree | 320aa2eae62a9e750a525f464871e375d0154099 /kernel/auditsc.c | |
parent | d6fd48eff7506bb866a54e40369df8899f2078a9 (diff) | |
download | linux-970ab823743fb54b42002ec76c51481f67436444.tar.xz |
virt/coco/sev-guest: Simplify extended guest request handling
Return a specific error code - -ENOSPC - to signal the too small cert
data buffer instead of checking exit code and exitinfo2.
While at it, hoist the *fw_err assignment in snp_issue_guest_request()
so that a proper error value is returned to the callers.
[ Tom: check override_err instead of err. ]
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230307192449.24732-4-bp@alien8.de
Diffstat (limited to 'kernel/auditsc.c')
0 files changed, 0 insertions, 0 deletions