commit | b908bd3d4c4110a8a2ed84e2b6ab56fa7201db25 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Apr 22 12:56:31 2016 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Mon Apr 25 19:14:52 2016 +0800 |
tree | 9fc7a18513c926dc29011cdb7d8446c4d7c60cb3 | |
parent | 3639ca840df953f9af6f15fc8a6bf77f19075ab1 [diff] |
crypto: mxc-scc - signedness bugs in mxc_scc_ablkcipher_req_init() ->src_nents and ->dst_nents are unsigned so they can't be less than zero. I fixed this by introducing a temporary "nents" variable. Fixes: d293b640ebd5 ('crypto: mxc-scc - add basic driver for the MXC SCC') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>