net/mlx5_core: Fix async commands return code
authorEli Cohen <eli@mellanox.com>
Fri, 25 Sep 2015 07:49:12 +0000 (10:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 05:19:49 +0000 (22:19 -0700)
commitbe87544de8df2b1eb34bcb5e32691287d96f9ec4
tree6a2766a1442c62974cca914cda9235db7a82e424
parent6c3dbd2d722a6010010ad99a6890a56178385bb8
net/mlx5_core: Fix async commands return code

In case of async command completion, the error code returned should take
into account the command completion status.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c