diff --git a/[refs] b/[refs] index 04f13f8757dd..1e4abad6a100 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 36ca239b245dbdec3b0c94976e956226bdd4108c +refs/heads/master: 269230e7c52623cda279010c8032a6f5b59caaaf diff --git a/trunk/crypto/algif_hash.c b/trunk/crypto/algif_hash.c index 62122a1a2f7a..ef5356cd280a 100644 --- a/trunk/crypto/algif_hash.c +++ b/trunk/crypto/algif_hash.c @@ -68,8 +68,10 @@ static int hash_sendmsg(struct kiocb *unused, struct socket *sock, int newlen; newlen = af_alg_make_sg(&ctx->sgl, from, len, 0); - if (newlen < 0) + if (newlen < 0) { + err = copied ? 0 : newlen; goto unlock; + } ahash_request_set_crypt(&ctx->req, ctx->sgl.sg, NULL, newlen);