Xin Long 08abb79542 sctp: sctp_transport_lookup_process should rcu_read_unlock when transport is null
Prior to this patch, sctp_transport_lookup_process didn't rcu_read_unlock
when it failed to find a transport by sctp_addrs_lookup_transport.

This patch is to fix it by moving up rcu_read_unlock right before checking
transport and also to remove the out path.

Fixes: 1cceda784980 ("sctp: fix the issue sctp_diag uses lock_sock in rcu_read_lock")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-17 11:43:23 -05:00
..
2016-12-03 23:54:25 -05:00
2016-11-30 12:33:07 +01:00
2016-11-14 13:17:21 -05:00
2016-12-09 22:59:05 -05:00
2016-10-20 11:23:08 -04:00
2016-12-10 17:25:58 -05:00
2016-12-09 22:59:05 -05:00