net/mlx5: fix error number handling
authorYongseok Koh <yskoh@mellanox.com>
Tue, 19 Jun 2018 23:13:13 +0000 (16:13 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:57 +0000 (01:35 +0200)
commit5cffc8b28dc874d04df7675abf7187c271524f70
tree12777b1a10c021328db65a5a3235e68e54b18485
parentc44fbc7cc2fb6cf62956d6b5bb2c0206884ad568
net/mlx5: fix error number handling

rte_errno should be saved only if error has occurred because rte_errno
could have garbage value.

Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno values")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c