]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: the temp asoc's transports should not be hashed/unhashed
authorXin Long <lucien.xin@gmail.com>
Sat, 16 Jan 2016 12:17:17 +0000 (20:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jan 2016 00:11:44 +0000 (19:11 -0500)
commit94bad4e1e109746662f05efd59a371fe18ffb904
tree2362c43a03fcaa7981fd19b41c1c9bc86e02d5fc
parent2a15771e9efa955a94fac6d14d0a68fc86b9e65c
sctp: the temp asoc's transports should not be hashed/unhashed

Re-establish the previous behavior and avoid hashing temporary asocs by
checking t->asoc->temp in sctp_(un)hash_transport. Also, remove the
check of t->asoc->temp in __sctp_lookup_association, since they are
never hashed now.

Fixes: 6317b2e155ed ("sctp: apply rhashtable api to send/recv path")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reported-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/endpointola.c
net/sctp/input.c