aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/sctp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r--include/net/sctp/sctp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index c9cc00c85782..d5a1ddc7483f 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -469,6 +469,11 @@ static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
469 skb->sk = sk; 469 skb->sk = sk;
470 skb->destructor = sctp_sock_rfree; 470 skb->destructor = sctp_sock_rfree;
471 atomic_add(event->rmem_len, &sk->sk_rmem_alloc); 471 atomic_add(event->rmem_len, &sk->sk_rmem_alloc);
472 /*
473 * This mimics the behavior of
474 * sk_stream_set_owner_r
475 */
476 sk->sk_forward_alloc -= event->rmem_len;
472} 477}
473 478
474/* Tests if the list has one and only one entry. */ 479/* Tests if the list has one and only one entry. */