summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/af_rxrpc.c
diff options
context:
space:
mode:
authorWei Yongjun2016-07-12 13:21:17 +0200
committerDavid S. Miller2016-07-12 20:07:38 +0200
commit8addc0440bdba9280bf212b70f17f029c2801805 (patch)
treea7bebb2e01072b819e315702983bdb273bbc9974 /net/rxrpc/af_rxrpc.c
parentstmmac: dwmac-socfpga: fix wrong pointer passed to PTR_ERR() (diff)
downloadkernel-qcow2-linux-8addc0440bdba9280bf212b70f17f029c2801805.tar.gz
kernel-qcow2-linux-8addc0440bdba9280bf212b70f17f029c2801805.tar.xz
kernel-qcow2-linux-8addc0440bdba9280bf212b70f17f029c2801805.zip
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>
Diffstat (limited to 'net/rxrpc/af_rxrpc.c')
-rw-r--r--net/rxrpc/af_rxrpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index d6e4e3b69dc3..88effadd4b16 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -766,9 +766,9 @@ error_key_type:
error_sock:
proto_unregister(&rxrpc_proto);
error_proto:
- destroy_workqueue(rxrpc_workqueue);
-error_security:
rxrpc_exit_security();
+error_security:
+ destroy_workqueue(rxrpc_workqueue);
error_work_queue:
kmem_cache_destroy(rxrpc_call_jar);
error_call_jar: