diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2014-07-10 16:18:08 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-08-25 20:27:16 +0800 |
commit | 785426042abadfc9d48bc40bf42f63569f1a1f4c (patch) | |
tree | 85093c77da3207cef369e5cbcbbf98dd55803b13 /crypto/async_tx/async_xor.c | |
parent | 245c531351ef282b69bcd2bd7d46bfc79234f9b4 (diff) | |
download | linux-crypto-785426042abadfc9d48bc40bf42f63569f1a1f4c.tar.gz linux-crypto-785426042abadfc9d48bc40bf42f63569f1a1f4c.zip |
crypto: hash - initialize entry len for null input in crypto hash sg list walk
For the special case when we have a null input string, we want
to initialize the entry len to 0 for the hash/ahash walk, so
cyrpto_hash_walk_last will return the correct result indicating
that we have completed the scatter list walk. Otherwise we may
keep walking the sg list and access bogus memory address.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/async_tx/async_xor.c')
0 files changed, 0 insertions, 0 deletions