crypto: img-hash - shift wrapping bug in img_hash_hw_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 Mar 2015 11:03:55 +0000 (14:03 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 Mar 2015 11:06:50 +0000 (22:06 +1100)
commita83034f5cb135bceb5b23dce1746ef2d98c68234
tree4a7db7403110fecc2a1b5ff6b35aca6a92254b68
parent900831a4d9cf3d0280527f176fc20e8c0cdbb63a
crypto: img-hash - shift wrapping bug in img_hash_hw_init()

"hdev->req->nbytes" is an unsigned int so we so we lose the upper 3 bits
to the shift wrap bug.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/img-hash.c