]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: blkcipher - Fix WARN_ON handling in walk_done
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2009 03:40:54 +0000 (14:40 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 27 Jan 2009 06:11:13 +0000 (17:11 +1100)
commit8b91524a8fd53e68e881ec89c6e63a740484cfff
tree7e13f7953ea27cff00ef5e45a3fd8e7dac4ea95a
parent403e7706b25141ad1cffe164ebb0d7bd5aacc681
crypto: blkcipher - Fix WARN_ON handling in walk_done

When we get left-over bits from a slow walk, it means that the
underlying cipher has gone troppo.  However, as we're handling
that case we should ensure that the caller terminates the walk.

This patch does this by setting walk->nbytes to zero.

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Reported-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/blkcipher.c