[HIFN]: Handle ablkcipher_walk errors
authorPatrick McHardy <kaber@trash.net>
Wed, 7 May 2008 14:32:28 +0000 (22:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jul 2008 12:35:11 +0000 (20:35 +0800)
commit94eaa1bd7ca67e8f57919da96cbb41c215ef20cb
tree62aa9f538cc928e090baf714b75b0fa6125c9991
parent9e70a408ad66846bc98dc026efe0384ef68373fc
[HIFN]: Handle ablkcipher_walk errors

ablkcipher_walk may return a negative error value, handle this properly
instead of treating it as a huge number of scatter-gather elements.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hifn_795x.c