net/mlx4_core: Avoid returning success in case of an error flow
authorNoa Osherovich <noaos@mellanox.com>
Thu, 12 Nov 2015 17:35:30 +0000 (19:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Nov 2015 23:43:41 +0000 (18:43 -0500)
commitd49c2197fd70c37d57982804465268440a33183a
treee169d909b3a377c0e21d48f3eda89ea9021903bb
parentf5adbfee72282bb1f456d52b04adacd4fe6ac502
net/mlx4_core: Avoid returning success in case of an error flow

The err variable wasn't set with the correct error value in some cases.

Fixes: 47605df95398 ('mlx4: Modify proxy/tunnel QP mechanism [..]')
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c