diff options
author | Tim Chen | 2014-07-11 01:18:08 +0200 |
---|---|---|
committer | Herbert Xu | 2014-08-25 14:27:16 +0200 |
commit | 6d9529c586dbf0d356916d113f72f36397e71cdb (patch) | |
tree | 3d3d7e19b45fcadf140ce51694a84b086a87424b /crypto/testmgr.c | |
parent | Linux 3.17-rc1 (diff) | |
download | kernel-qcow2-linux-6d9529c586dbf0d356916d113f72f36397e71cdb.tar.gz kernel-qcow2-linux-6d9529c586dbf0d356916d113f72f36397e71cdb.tar.xz kernel-qcow2-linux-6d9529c586dbf0d356916d113f72f36397e71cdb.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/testmgr.c')
0 files changed, 0 insertions, 0 deletions