Merge branch 'for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[linux-2.6-microblaze.git] / net / rxrpc / output.c
index 3cfff79..10f2bf2 100644 (file)
@@ -357,6 +357,12 @@ int rxrpc_send_data_packet(struct rxrpc_call *call, struct sk_buff *skb,
 
        _enter(",{%d}", skb->len);
 
+       if (hlist_unhashed(&call->error_link)) {
+               spin_lock_bh(&call->peer->lock);
+               hlist_add_head_rcu(&call->error_link, &call->peer->error_targets);
+               spin_unlock_bh(&call->peer->lock);
+       }
+
        /* Each transmission of a Tx packet needs a new serial number */
        serial = atomic_inc_return(&conn->serial);