crypto: sun8i-ss - handle zero sized sg
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:15 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:18 +0000 (17:24 +0800)
commitc149e4763d28bb4c0e5daae8a59f2c74e889f407
treed45f98587d09c1139d4f709af42100e14b8f4b95
parent359e893e8af456be2fefabe851716237df289cbf
crypto: sun8i-ss - handle zero sized sg

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>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c