From: Herbert Xu Date: Fri, 16 Jan 2009 03:40:54 +0000 (+1100) Subject: crypto: blkcipher - Fix WARN_ON handling in walk_done X-Git-Tag: v2.6.29-rc3~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bac1b5c4696f217afeac5b29874a337bc39da717;p=pandora-kernel.git 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 Reported-by: Huang Ying Signed-off-by: Herbert Xu --- Reading git-diff-tree failed