From: Ido Schimmel <ido...@idosch.org>
Date: Sun, 27 Sep 2020 09:42:11 +0300

> From: Ido Schimmel <ido...@nvidia.com>
> 
> If mlxsw_sp_acl_tcam_group_id_get() fails, the mutex initialized earlier
> is not destroyed.
> 
> Fix this by initializing the mutex after calling the function. This is
> symmetric to mlxsw_sp_acl_tcam_group_del().
> 
> Fixes: 5ec2ee28d27b ("mlxsw: spectrum_acl: Introduce a mutex to guard region 
> list updates")
> Signed-off-by: Ido Schimmel <ido...@nvidia.com>
> Reviewed-by: Jiri Pirko <j...@nvidia.com>

Applied and queued up for -stable.

Reply via email to