Commit 8addc044 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: 648af7fc ("rxrpc: Absorb the rxkad security module")
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b8fb418
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: