mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:19:34 +02:00
net: fib_rules: Destroy ops->lock in fib_rules_unregister().
Commit 8e133ba99c ("net: fib_rules: Add fib_rules_ops.lock.")
added mutex in struct fib_rules_ops, which is initialised in
fib_rules_register().
Let's add paired mutex_destroy() in fib_rules_unregister().
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260702044437.591864-3-kuniyu@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
6041421dd0
commit
99c13f8020
@@ -203,6 +203,7 @@ void fib_rules_unregister(struct fib_rules_ops *ops)
|
||||
spin_unlock(&net->rules_mod_lock);
|
||||
|
||||
fib_rules_cleanup_ops(ops);
|
||||
mutex_destroy(&ops->lock);
|
||||
kfree_rcu(ops, rcu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user