rxrpc: Fix error handling in af_rxrpc_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:21:17 +0000 (11:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jul 2016 18:07:38 +0000 (11:07 -0700)
commit8addc0440bdba9280bf212b70f17f029c2801805
treea7bebb2e01072b819e315702983bdb273bbc9974
parent2b8fb41844ec9d6a437b0009f777039d845b1b04
rxrpc: Fix error handling in af_rxrpc_init()

security initialized after alloc workqueue, so we should exit security
before destroy workqueue in the error handing.

Fixes: 648af7fca159 ("rxrpc: Absorb the rxkad security module")
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/af_rxrpc.c