]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: Fixing wrong error codes in communication channel
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 19 Dec 2011 04:03:53 +0000 (04:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2011 19:57:07 +0000 (14:57 -0500)
commit0f2f446ce3c38076d020cdad38fffab6e6caf278
tree42ff90164a8bbb6cef88f3489fed3b2e418796c2
parent950fd5331c3943ec2ecfd09b9a018d7aeb9c223f
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