diff options
author | AlexChen | 2020-10-29 14:43:27 +0100 |
---|---|---|
committer | Marcel Apfelbaum | 2020-12-18 19:15:42 +0100 |
commit | eed31bc5e2e9cc68626d51e7a10914dc52c370f8 (patch) | |
tree | fa5d0331ea48169f900a90b7861d9c683beb9b0a /monitor/qmp-cmds-control.c | |
parent | Merge remote-tracking branch 'remotes/alistair/tags/pull-riscv-to-apply-20201... (diff) | |
download | qemu-eed31bc5e2e9cc68626d51e7a10914dc52c370f8.tar.gz qemu-eed31bc5e2e9cc68626d51e7a10914dc52c370f8.tar.xz qemu-eed31bc5e2e9cc68626d51e7a10914dc52c370f8.zip |
contrib/rdmacm-mux: Fix error condition in hash_tbl_search_fd_by_ifid()
When fd is not found according to ifid, the _hash_tbl_search_fd_by_ifid()
returns 0 and assigns the result to *fd, so We have to check that *fd is 0,
not that fd is 0.
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: AlexChen <alex.chen@huawei.com>
Message-Id: <5F9AC6FF.4000301@huawei.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'monitor/qmp-cmds-control.c')
0 files changed, 0 insertions, 0 deletions