Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213822
b: refs/heads/master
c: b02b69c
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Aug 18, 2010
1 parent 1e69fa5 commit d12cc66
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f662c07058f7e6365ae65080d772f9122f6f50a9
refs/heads/master: b02b69c8a403859ec72090742727e853d606a325
14 changes: 14 additions & 0 deletions trunk/net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,15 @@ static int link_recv_buf_validate(struct sk_buff *buf)
return pskb_may_pull(buf, hdr_size);
}

/**
* tipc_recv_msg - process TIPC messages arriving from off-node
* @head: pointer to message buffer chain
* @tb_ptr: pointer to bearer message arrived on
*
* Invoked with no locks held. Bearer pointer must point to a valid bearer
* structure (i.e. cannot be NULL), but bearer can be inactive.
*/

void tipc_recv_msg(struct sk_buff *head, struct tipc_bearer *tb_ptr)
{
read_lock_bh(&tipc_net_lock);
Expand All @@ -1819,6 +1828,11 @@ void tipc_recv_msg(struct sk_buff *head, struct tipc_bearer *tb_ptr)

head = head->next;

/* Ensure bearer is still enabled */

if (unlikely(!b_ptr->active))
goto cont;

/* Ensure message is well-formed */

if (unlikely(!link_recv_buf_validate(buf)))
Expand Down

0 comments on commit d12cc66

Please sign in to comment.