crypto: sun8i-ss - handle zero sized sg
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:15 +0000 (20:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:11 +0000 (10:23 +0200)
commitde5b734db2953b1c9d1bb8f725c64325ec31b5ec
tree24dbce2f639b367613b0f3346491127ab5214126
parentbbfc612ac579dee355b212e492b22ce273dfa4a7
crypto: sun8i-ss - handle zero sized sg

[ Upstream commit c149e4763d28bb4c0e5daae8a59f2c74e889f407 ]

sun8i-ss does not handle well the possible zero sized sg.

Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash algorithms")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c