Files
linux/net/tipc
Fedor Pchelkin de52e17326 tipc: stop tipc crypto on failure in tipc_node_create
If tipc_link_bc_create() fails inside tipc_node_create() for a newly
allocated tipc node then we should stop its tipc crypto and free the
resources allocated with a call to tipc_crypto_start().

As the node ref is initialized to one to that point, just put the ref on
tipc_link_bc_create() error case that would lead to tipc_node_free() be
eventually executed and properly clean the node and its crypto resources.

Found by Linux Verification Center (linuxtesting.org).

Fixes: cb8092d70a ("tipc: move bc link creation back to tipc_node_create")
Suggested-by: Xin Long <[email protected]>
Signed-off-by: Fedor Pchelkin <[email protected]>
Reviewed-by: Xin Long <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
2023-07-27 11:45:05 +02:00
..
2021-06-28 13:31:57 -07:00
…
2021-05-18 13:22:09 -07:00
…
2021-10-13 09:40:46 -07:00
2021-10-13 09:40:46 -07:00
…
2021-05-18 13:22:09 -07:00
…
…
2022-01-27 13:53:27 +00:00
2022-06-17 11:43:57 +01:00
2022-06-17 11:43:57 +01:00
2021-05-18 13:22:09 -07:00
…
…
…
…
2021-06-10 13:48:43 -07:00
2021-03-29 16:28:50 -07:00
…
…
…