Files
linux-stable-mirror/drivers
Ovidiu PanaitandGreg Kroah-Hartman 08489b1994 crypto: sahara - fix processing hash requests with req->nbytes < sg->length
[ Upstream commit 7bafa74d1b ]

It's not always the case that the entire sg entry needs to be processed.
Currently, when nbytes is less than sg->length, "Descriptor length" errors
are encountered.

To fix this, take the actual request size into account when populating the
hw links.

Fixes: 5a2bb93f59 ("crypto: sahara - add support for SHA1/256")
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:18 -08:00
..
2024-01-20 11:51:47 +01:00
2024-01-20 11:51:46 +01:00
2024-01-20 11:51:48 +01:00
2024-01-20 11:51:41 +01:00