mlxsw: spectrum_acl_tcam: Add missing mutex_destroy()
authorIdo Schimmel <idosch@nvidia.com>
Mon, 6 Feb 2023 15:39:19 +0000 (16:39 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Feb 2023 04:18:49 +0000 (20:18 -0800)
commit65823e07b1e4055b6278725fd92f4d7e6f8d53fd
treec828410b56424523966967b74c2efe8bbf89c838
parent8b50ac29854a04c8c35d3d0cb33d2166bf74c6e6
mlxsw: spectrum_acl_tcam: Add missing mutex_destroy()

Pair mutex_init() with a mutex_destroy() in the error path. Found during
code review. No functional changes.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c