]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: talitos - Fix return type of current_desc_hdr()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 8 Oct 2020 09:34:56 +0000 (09:34 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:25:36 +0000 (14:25 +0100)
commit70f96a9c9b3bb299f48d7194411b28c35221a90d
tree636c47b73189dc6e3c06fed0dfe901b8797ee58f
parentd5574c177a9ef3c3c53b7a206044c6f299f30b9d
crypto: talitos - Fix return type of current_desc_hdr()

BugLink: https://bugs.launchpad.net/bugs/1910822
[ Upstream commit 0237616173fd363a54bd272aa3bd376faa1d7caa ]

current_desc_hdr() returns a u32 but in fact this is a __be32,
leading to a lot of sparse warnings.

Change the return type to __be32 and ensure it is handled as
sure by the caller.

Fixes: 3e721aeb3df3 ("crypto: talitos - handle descriptor not found in error path")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/crypto/talitos.c