diff options
author | David S. Miller <davem@davemloft.net> | 2014-07-16 17:09:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-16 17:09:34 -0400 |
commit | 1a98c69af1ecd97bfd1f4e4539924a9192434e36 (patch) | |
tree | a243defcf921ea174f8e43fce11d06830a6a9c36 /net/tipc | |
parent | 7a575f6b907ea5d207d2b5010293c189616eae34 (diff) | |
parent | b6603fe574af289dbe9eb9fb4c540bca04f5a053 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/bcast.c | 1 | ||||
-rw-r--r-- | net/tipc/msg.c | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 26631679a1fa..55c6c9d3e1ce 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -559,6 +559,7 @@ receive: | |||
559 | 559 | ||
560 | buf = node->bclink.deferred_head; | 560 | buf = node->bclink.deferred_head; |
561 | node->bclink.deferred_head = buf->next; | 561 | node->bclink.deferred_head = buf->next; |
562 | buf->next = NULL; | ||
562 | node->bclink.deferred_size--; | 563 | node->bclink.deferred_size--; |
563 | goto receive; | 564 | goto receive; |
564 | } | 565 | } |
diff --git a/net/tipc/msg.c b/net/tipc/msg.c index 6ec958401f78..ce6d929d66d2 100644 --- a/net/tipc/msg.c +++ b/net/tipc/msg.c | |||
@@ -96,9 +96,11 @@ int tipc_msg_build(struct tipc_msg *hdr, struct iovec const *msg_sect, | |||
96 | } | 96 | } |
97 | 97 | ||
98 | /* tipc_buf_append(): Append a buffer to the fragment list of another buffer | 98 | /* tipc_buf_append(): Append a buffer to the fragment list of another buffer |
99 | * Let first buffer become head buffer | 99 | * @*headbuf: in: NULL for first frag, otherwise value returned from prev call |
100 | * Returns 1 and sets *buf to headbuf if chain is complete, otherwise 0 | 100 | * out: set when successful non-complete reassembly, otherwise NULL |
101 | * Leaves headbuf pointer at NULL if failure | 101 | * @*buf: in: the buffer to append. Always defined |
102 | * out: head buf after sucessful complete reassembly, otherwise NULL | ||
103 | * Returns 1 when reassembly complete, otherwise 0 | ||
102 | */ | 104 | */ |
103 | int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf) | 105 | int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf) |
104 | { | 106 | { |
@@ -117,6 +119,7 @@ int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf) | |||
117 | goto out_free; | 119 | goto out_free; |
118 | head = *headbuf = frag; | 120 | head = *headbuf = frag; |
119 | skb_frag_list_init(head); | 121 | skb_frag_list_init(head); |
122 | *buf = NULL; | ||
120 | return 0; | 123 | return 0; |
121 | } | 124 | } |
122 | if (!head) | 125 | if (!head) |
@@ -145,6 +148,8 @@ int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf) | |||
145 | out_free: | 148 | out_free: |
146 | pr_warn_ratelimited("Unable to build fragment list\n"); | 149 | pr_warn_ratelimited("Unable to build fragment list\n"); |
147 | kfree_skb(*buf); | 150 | kfree_skb(*buf); |
151 | kfree_skb(*headbuf); | ||
152 | *buf = *headbuf = NULL; | ||
148 | return 0; | 153 | return 0; |
149 | } | 154 | } |
150 | 155 | ||