net/mlx5: fix locking in xstats functions
authorMatan Azrad <matan@mellanox.com>
Mon, 14 Aug 2017 11:32:24 +0000 (14:32 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:47 +0000 (02:49 +0200)
commitb5743da31eba03cdc7abae3295f8ba852919c4a3
tree196dea03c7dff9d61bf5bd9bee55557ad03ec8c9
parentc4e9863c4db14442a38c868d2c899e246d64faea
net/mlx5: fix locking in xstats functions

The corrupted code didn't unlock the spinlock in xstats
get and reset functions error flow.

Hence, if these errors happened, the device spinlock was
left locked and many mlx5 device functionalities were blocked.

The fix unlocks the spinlock in the missed places.

Fixes: e62bc9e70608 ("net/mlx5: fix extended statistics")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_stats.c