diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-03-24 11:14:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-24 14:55:30 -0400 |
commit | 375cf8c6439f44fbb51f9ba4eba6686d73d06229 (patch) | |
tree | c513fae6e3e2c3d9f52d06f499767e2fa8b0c5af /net | |
parent | 956ca8fc5c648b236917a8253c361a04e6f20d93 (diff) | |
download | linux-375cf8c6439f44fbb51f9ba4eba6686d73d06229.tar.bz2 |
net: devlink: add couple of missing mutex_destroy() calls
Add missing called to mutex_destroy() for two mutexes used
in devlink code.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/devlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 1a65cbf1ab05..bd4d8bce658d 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -4486,6 +4486,7 @@ devlink_health_reporter_destroy(struct devlink_health_reporter *reporter) { mutex_lock(&reporter->devlink->lock); list_del(&reporter->list); + mutex_destroy(&reporter->dump_lock); mutex_unlock(&reporter->devlink->lock); if (reporter->dump_fmsg) devlink_fmsg_free(reporter->dump_fmsg); @@ -5261,6 +5262,7 @@ EXPORT_SYMBOL_GPL(devlink_unregister); */ void devlink_free(struct devlink *devlink) { + mutex_destroy(&devlink->lock); WARN_ON(!list_empty(&devlink->reporter_list)); WARN_ON(!list_empty(&devlink->region_list)); WARN_ON(!list_empty(&devlink->param_list)); |