commit | bac1b5c4696f217afeac5b29874a337bc39da717 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jan 16 14:40:54 2009 +1100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Tue Jan 27 17:11:13 2009 +1100 |
tree | 7e13f7953ea27cff00ef5e45a3fd8e7dac4ea95a | |
parent | 29b37f42127f7da511560a40ea74f5047da40c13 [diff] |
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>