]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7fd059b9ab403b0e32c1d9a2545ef78b1ed74aae
treee169d909b3a377c0e21d48f3eda89ea9021903bb
parent895ac07975a31bd5d2ae98dce8478757c5da854f
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: 8cd26ac09c32 ('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