diff options
| author | Tycho Andersen (AMD) <tycho@kernel.org> | 2026-04-29 09:56:36 -0600 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-05-08 20:29:40 +0200 |
| commit | e9d29f4a9183b5bd355aaf996bd16ecb69e52eb1 (patch) | |
| tree | b3e92f395668c2fa37fb22e54f8e363b7d6252ac /scripts/Makefile.thinlto | |
| parent | 39f1de2fffb3dc1751153e4c3d9138ccd958e8b1 (diff) | |
crypto/ccp: Skip SNP_INIT if preparation fails
If snp_prepare() fails, SNP_INIT will fail, so skip it and return early.
Note that this is not a change in initialization behavior: if SNP_INIT fails
even before this change, it will still return an error and
__sev_snp_init_locked() will fail initialization of other SEV modes.
Signed-off-by: Tycho Andersen (AMD) <tycho@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://lore.kernel.org/20260429155636.540040-1-tycho@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
