Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336075
b: refs/heads/master
c: be364c8
h: refs/heads/master
i:
  336073: a80e933
  336071: c531e1a
v: v3
  • Loading branch information
Tommi Rantala authored and David S. Miller committed Nov 28, 2012
1 parent 2bafb64 commit dc3e8bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: b49d3c1e1c948d76d64790abe9acffa9fa747d19
refs/heads/master: be364c8c0f17a3dd42707b5a090b318028538eb9
7 changes: 5 additions & 2 deletions trunk/net/sctp/chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,
goto errout;
err = sctp_user_addto_chunk(chunk, offset, len, msgh->msg_iov);
if (err < 0)
goto errout;
goto errout_chunk_free;

offset += len;

Expand Down Expand Up @@ -324,14 +324,17 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,
__skb_pull(chunk->skb, (__u8 *)chunk->chunk_hdr
- (__u8 *)chunk->skb->data);
if (err < 0)
goto errout;
goto errout_chunk_free;

sctp_datamsg_assign(msg, chunk);
list_add_tail(&chunk->frag_list, &msg->chunks);
}

return msg;

errout_chunk_free:
sctp_chunk_free(chunk);

errout:
list_for_each_safe(pos, temp, &msg->chunks) {
list_del_init(pos);
Expand Down

0 comments on commit dc3e8bc

Please sign in to comment.