summaryrefslogtreecommitdiff
path: root/crypto/compress.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2011-06-27 15:45:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2011-06-30 07:44:06 +0800
commit8ab917010e95bf4db05457cc455b3e178787c1fb (patch)
tree2626d6081ff0dab9ce0cd2de50946a6e6464a16d /crypto/compress.c
parentd6bdf4bc032abb66238c87463d89fe1275bebef9 (diff)
downloadlinux-crypto-8ab917010e95bf4db05457cc455b3e178787c1fb.tar.gz
linux-crypto-8ab917010e95bf4db05457cc455b3e178787c1fb.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 'crypto/compress.c')
0 files changed, 0 insertions, 0 deletions