aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2020-09-27 09:42:11 +0300
committerDavid S. Miller <[email protected]>2020-09-27 13:22:31 -0700
commit72865028582a678be1e05240e55d452e5c258eca (patch)
tree49b4a61be8b90182bfdb4d45122c5a94d4fde088 /lib/test_overflow.c
parent7dbbcf496f2a4b6d82cfc7810a0746e160b79762 (diff)
mlxsw: spectrum_acl: Fix mlxsw_sp_acl_tcam_group_add()'s error path
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 <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions