crypto: mv_cesa - make count_sgs() null-pointer proof
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 5 May 2011 13:29:06 +0000 (15:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 May 2011 05:06:22 +0000 (15:06 +1000)
commit6ef84509f3d439ed2d43ea40080643efec37f54f
tree9eb8760dc6ba6f9dd5a94238ca237962aa806e8b
parent7759995c75ae0cbd4c861582908449f6b6208e7a
crypto: mv_cesa - make count_sgs() null-pointer proof

This also makes the dummy scatterlist in mv_hash_final() needless, so
drop it.

XXX: should this routine be made pulicly available? There are probably
other users with their own implementations.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c