mlx4: Fixing wrong error codes in communication channel
commit72be84f1c21c0ddba1081291072d7acc9ccddf5f
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 19 Dec 2011 04:03:53 +0000 (19 04:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2011 19:57:07 +0000 (19 14:57 -0500)
tree42ff90164a8bbb6cef88f3489fed3b2e418796c2
parent996b0541e73a3321947dbc8894a078b8e82e8691
mlx4: Fixing wrong error codes in communication channel

The communication channel is HW interface from PF point of view
So the command return status should be stored as HW error code
and only then translated to errno values.

Reporetd-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c