From: Tim Chen Date: Thu, 10 Jul 2014 23:18:08 +0000 (-0700) Subject: crypto: hash - initialize entry len for null input in crypto hash sg list walk X-Git-Tag: fixes-for-v3.18-merge-window~17^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d9529c586dbf0d356916d113f72f36397e71cdb;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu --- Reading git-diff-tree failed