diff options
| author | Tycho Andersen (AMD) <tycho@kernel.org> | 2026-03-02 18:02:23 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-03-14 08:03:19 +0300 |
| commit | 35a89319f60a48fb8cd07617f8e2c4649edbe361 (patch) | |
| tree | 3a08444c2429fdef2ca078bee6a532ebd907f78e /include | |
| parent | d23cf35880114a1ad24efc262577e494ebfa0c23 (diff) | |
| download | linux-35a89319f60a48fb8cd07617f8e2c4649edbe361.tar.xz | |
crypto: ccp - simplify sev_update_firmware()
sev_do_cmd() has its own command buffer (sev->cmd_buf) with the correct
alignment, perms, etc. that it copies the command into, so prepending it to
the firmware data is unnecessary.
Switch sev_update_firmware() to using a stack allocated command in light of
this copy, and drop all of the resulting pointer math.
Signed-off-by: Tycho Andersen (AMD) <tycho@kernel.org>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
