Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257935
b: refs/heads/master
c: 269230e
h: refs/heads/master
i:
  257933: 9e1215c
  257931: f18e328
  257927: 04519cf
  257919: c7e77cf
v: v3
  • Loading branch information
Herbert Xu committed Jun 29, 2011
1 parent 50f3435 commit 73280f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36ca239b245dbdec3b0c94976e956226bdd4108c
refs/heads/master: 269230e7c52623cda279010c8032a6f5b59caaaf
4 changes: 3 additions & 1 deletion trunk/crypto/algif_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73280f5

Please sign in to comment.