Re: [PATCHv2 net] sctp: hold the transport before using it in sctp_hash_cmp

2016-09-13 Thread David Miller
From: Xin Long Date: Sat, 10 Sep 2016 23:11:23 +0800 > Since commit 4f0087812648 ("sctp: apply rhashtable api to send/recv > path"), sctp uses transport rhashtable with .obj_cmpfn sctp_hash_cmp, > in which it compares the members of the transport with the rhashtable > args to check if it's the ri

Re: [PATCHv2 net] sctp: hold the transport before using it in sctp_hash_cmp

2016-09-12 Thread Marcelo Ricardo Leitner
On Sat, Sep 10, 2016 at 11:11:23PM +0800, Xin Long wrote: > Since commit 4f0087812648 ("sctp: apply rhashtable api to send/recv > path"), sctp uses transport rhashtable with .obj_cmpfn sctp_hash_cmp, > in which it compares the members of the transport with the rhashtable > args to check if it's the

[PATCHv2 net] sctp: hold the transport before using it in sctp_hash_cmp

2016-09-10 Thread Xin Long
Since commit 4f0087812648 ("sctp: apply rhashtable api to send/recv path"), sctp uses transport rhashtable with .obj_cmpfn sctp_hash_cmp, in which it compares the members of the transport with the rhashtable args to check if it's the right transport. But sctp uses the transport without holding it