Merge branch 'tipc-revert-two-patches'
Tuong Lien says: ==================== tipc: revert two patches We revert two patches: tipc: Fix potential tipc_node refcnt leak in tipc_rcv tipc: Fix potential tipc_aead refcnt leak in tipc_crypto_rcv which prevented TIPC encryption from working properly and caused kernel panic. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
241d46dce9
|
@ -1712,7 +1712,6 @@ exit:
|
|||
case -EBUSY:
|
||||
this_cpu_inc(stats->stat[STAT_ASYNC]);
|
||||
*skb = NULL;
|
||||
tipc_aead_put(aead);
|
||||
return rc;
|
||||
default:
|
||||
this_cpu_inc(stats->stat[STAT_NOK]);
|
||||
|
|
|
@ -2038,7 +2038,6 @@ void tipc_rcv(struct net *net, struct sk_buff *skb, struct tipc_bearer *b)
|
|||
n = tipc_node_find_by_id(net, ehdr->id);
|
||||
}
|
||||
tipc_crypto_rcv(net, (n) ? n->crypto_rx : NULL, &skb, b);
|
||||
tipc_node_put(n);
|
||||
if (!skb)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue