[CRYPTO] scatterwalk: Handle zero nbytes in scatterwalk_map_and_copy
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2007 16:44:11 +0000 (00:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:54 +0000 (08:16 +1100)
commit6e050778c5d08a97d5d98f7cb62bc503e872615c
treeb58022ec4378bbfb51291c68da914ce64a526db8
parentce5bd4aca3c467936370846119b7f3daf9ccea78
[CRYPTO] scatterwalk: Handle zero nbytes in scatterwalk_map_and_copy

It's better to return silently than crash and burn when someone feeds us
a zero length.  In particular the null digest algorithm when used as part
of authenc will do that to us.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scatterwalk.c