summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2011-06-27 09:45:19 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-06-30 01:44:06 +0200
commit269230e7c52623cda279010c8032a6f5b59caaaf (patch)
tree4acb3b9d9e4b1f7b3151d8e91e3201524140893a /drivers
parentcrypto: sha1_generic - use SHA1_BLOCK_SIZE (diff)
downloadlinux-269230e7c52623cda279010c8032a6f5b59caaaf.tar.xz
linux-269230e7c52623cda279010c8032a6f5b59caaaf.zip
crypto: algif_hash - Handle initial af_alg_make_sg error correctly
When the first call to af_alg_make_sg fails, we may return garbage instead of the real error. This patch fixes it by setting the error if "copied" is zero. Based on a patch by Jesper Juhl. Reported-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions