mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +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:
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user