"Zhijian Li (Fujitsu)" writes:
> On 18/09/2023 22:41, Markus Armbruster wrote:
>> qemu_rdma_wait_comp_channel() returns 0 on success, and either -1 or
>> rdma->error_state on failure. Callers actually expect a negative
>> error value.
>
> I don't see the only one callers expect a negative
On 18/09/2023 22:41, Markus Armbruster wrote:
> qemu_rdma_wait_comp_channel() returns 0 on success, and either -1 or
> rdma->error_state on failure. Callers actually expect a negative
> error value.
I don't see the only one callers expect a negative error code.
migration/rdma.c:1654:
qemu_rdma_wait_comp_channel() returns 0 on success, and either -1 or
rdma->error_state on failure. Callers actually expect a negative
error value. I believe rdma->error_state can't be positive, but let's
make things more obvious by simply returning -1 on any failure.
Signed-off-by: Markus