]> 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)
commit9cd865b5d436b49957e9ef3266d00d0e5c5275b0
treee169d909b3a377c0e21d48f3eda89ea9021903bb
parent6c986fad27dd78a2bf4d3f132a88674ddd207088
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: d0696d108918 ('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