[PATCH 04/10] crypto: atmel-sha: fix sg list management

2015-04-07 Thread Leilei Zhao
Having a zero length sg doesn't mean it is the end of the sg list. This case happens when calculating HMAC of IPSec packet. Signed-off-by: Leilei Zhao Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre --- drivers/crypto/atmel-sha.c | 16 ++-- 1 file changed, 14

[PATCH 04/10] crypto: atmel-sha: fix sg list management

2015-04-07 Thread Leilei Zhao
Having a zero length sg doesn't mean it is the end of the sg list. This case happens when calculating HMAC of IPSec packet. Signed-off-by: Leilei Zhao leilei.z...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---