Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reported-by: Huang Ying <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information