]> 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)
commitf19ec06161ffd77735426a67df51bbe6c41021c6
tree42ff90164a8bbb6cef88f3489fed3b2e418796c2
parentbc7f1f00e39bf8f19a7c83b84aefd748ddb84771
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