tipc: Cleanup tipc_nl_bearer_add() error paths
authorShigeru Yoshida <syoshida@redhat.com>
Tue, 13 Feb 2024 13:40:58 +0000 (22:40 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 Feb 2024 12:18:19 +0000 (13:18 +0100)
commit984328c7657dbf2fea8f67e1171cb93a22d7fc06
tree0eac7a4a49627fe82d6972beba43ad9355aedd39
parent038ba1dc4e54d51d953f5618d8eb5dd39bd9de25
tipc: Cleanup tipc_nl_bearer_add() error paths

Consolidate the error paths of tipc_nl_bearer_add() under the common label
if the function holds rtnl_lock.

Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
Reviewed-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Link: https://lore.kernel.org/r/20240213134058.386123-1-syoshida@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/tipc/bearer.c