diff options
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index b73adeb5cdee..a572f0a27e0b 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -1746,10 +1746,6 @@ deliver: | |||
1746 | tipc_node_unlock(n_ptr); | 1746 | tipc_node_unlock(n_ptr); |
1747 | tipc_link_recv_bundle(buf); | 1747 | tipc_link_recv_bundle(buf); |
1748 | continue; | 1748 | continue; |
1749 | case ROUTE_DISTRIBUTOR: | ||
1750 | tipc_node_unlock(n_ptr); | ||
1751 | buf_discard(buf); | ||
1752 | continue; | ||
1753 | case NAME_DISTRIBUTOR: | 1749 | case NAME_DISTRIBUTOR: |
1754 | tipc_node_unlock(n_ptr); | 1750 | tipc_node_unlock(n_ptr); |
1755 | tipc_named_recv(buf); | 1751 | tipc_named_recv(buf); |
@@ -1776,6 +1772,10 @@ deliver: | |||
1776 | goto protocol_check; | 1772 | goto protocol_check; |
1777 | } | 1773 | } |
1778 | break; | 1774 | break; |
1775 | default: | ||
1776 | buf_discard(buf); | ||
1777 | buf = NULL; | ||
1778 | break; | ||
1779 | } | 1779 | } |
1780 | } | 1780 | } |
1781 | tipc_node_unlock(n_ptr); | 1781 | tipc_node_unlock(n_ptr); |