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:30:30 +0000 (10:30 +0200)
commit8aca355c32fe75c4ff60bbb058f31f3f710c95bd
tree8c74fd186949216cb9b8b97428f1748b07de4798
parente8d0d94cef6980a1f4b7399296431c66cc5f7b08
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