]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix false positive on failure
authorSlava Shwartsman <slavash@FreeBSD.org>
Sun, 17 Jun 2018 07:08:47 +0000 (07:08 +0000)
committerSlava Shwartsman <slavash@FreeBSD.org>
Sun, 17 Jun 2018 07:08:47 +0000 (07:08 +0000)
commitcd9cc48b9affbd920825c1b2d26a1eae151249b8
tree5e8f3e7ef16502ddfb91a5008352e4a5bd5c0caf
parent5164504a9ea522a54309414ea6166d96108553e1
Fix false positive on failure

When running mckey, errors may happen in the init/connect stage.
When leaving multicast groups, we override this value.

Fix that by saving the return value from rdma_leave_multicast to different
parameter, and only in case of failure in rdma_leave_multicast override it.

MFC after:      1 week
Approved by:    hselasky (mentor), kib (mentor)
Sponsored by:   Mellanox Technologies
contrib/ofed/librdmacm/examples/mckey.c