]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e79eaeacef2f54a74e5525d728ea3031ee53760
tree9eb8760dc6ba6f9dd5a94238ca237962aa806e8b
parent2c3c9903d8da64ee3da1ead975f23ba3d9604dc5
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