summaryrefslogtreecommitdiff
path: root/include/linux/start_kernel.h
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-03-11 14:39:28 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2026-03-22 05:17:58 +0300
commit57a13941c0bb06ae24e3b34672d7b6f2172b253f (patch)
treedd96f3cced854c1f951fed6018232bd3e7bbbf96 /include/linux/start_kernel.h
parent464da0bf19fd0fdf4a6594ce2d3352bc5c3e676d (diff)
downloadlinux-57a13941c0bb06ae24e3b34672d7b6f2172b253f.tar.xz
crypto: atmel-aes - guard unregister on error in atmel_aes_register_algs
Ensure the device supports XTS and GCM with 'has_xts' and 'has_gcm' before unregistering algorithms when XTS or authenc registration fails, which would trigger a WARN in crypto_unregister_alg(). Currently, with the capabilities defined in atmel_aes_get_cap(), this bug cannot happen because all devices that support XTS and authenc also support GCM, but the error handling should still be correct regardless of hardware capabilities. Fixes: d52db5188a87 ("crypto: atmel-aes - add support to the XTS mode") Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions