]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
[SCTP]: Fix assertion (!atomic_read(&sk->sk_rmem_alloc)) failed message
authorTsutomu Fujii <t-fujii@nb.jp.nec.com>
Tue, 17 Apr 2007 19:49:53 +0000 (12:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 17 Apr 2007 20:13:37 +0000 (13:13 -0700)
commitea2bc483ff5caada7c4aa0d5fbf87d3a6590273d
tree2dea10c6646a961568b3108f2aad0572113576cd
parentc2ecba71717c4f60671175fd26083c35a4b9ad58
[SCTP]: Fix assertion (!atomic_read(&sk->sk_rmem_alloc)) failed message

In current implementation, LKSCTP does receive buffer accounting for
data in sctp_receive_queue and pd_lobby. However, LKSCTP don't do
accounting for data in frag_list when data is fragmented. In addition,
LKSCTP doesn't do accounting for data in reasm and lobby queue in
structure sctp_ulpq.
When there are date in these queue, assertion failed message is printed
in inet_sock_destruct because sk_rmem_alloc of oldsk does not become 0
when socket is destroyed.

Signed-off-by: Tsutomu Fujii <t-fujii@nb.jp.nec.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c