RDMA queue
The following changes since commit a05f8ecd88f15273d033b6f044b850a8af84a5b8:
Merge remote-tracking branch 'remotes/alistair/tags/pull-riscv-to-apply-20201217-1' into staging (2020-12-18 11:12:35 +0000)
are available in the Git repository at:
https://github.com/marcel-apf/qemu tags/rdma-pull-request
for you to fetch changes up to eed31bc5e2e9cc68626d51e7a10914dc52c370f8:
contrib/rdmacm-mux: Fix error condition in hash_tbl_search_fd_by_ifid() (2020-12-18 20:15:42 +0200)
----------------------------------------------------------------
RDMA queue
* bug fix in contrib/rdmacm-mux
----------------------------------------------------------------
AlexChen (1):
contrib/rdmacm-mux: Fix error condition in hash_tbl_search_fd_by_ifid()
contrib/rdmacm-mux/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 1/1] contrib/rdmacm-mux: Fix error condition in hash_tbl_search_fd_by_ifid()
From: AlexChen <[email protected]>
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.
Message-Id: <[email protected]>
--- contrib/rdmacm-mux/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/rdmacm-mux/main.c +1 -1
@@ -186,7 +186,7 @@ static int hash_tbl_search_fd_by_ifid(int *fd, __be64 *gid_ifid) *fd =_hash_tbl_search_fd_by_ifid (gid_ifid);pthread_rwlock_unlock (&server.lock); -if (!fd) { +if (!*fd) {syslog (LOG_WARNING ,"Can't find matching for ifid 0x%llx\n" , *gid_ifid);return -ENOENT ; }
Signature · 1 line
2.17.2
Peter Maydell
AppliedQuoted 9 lines · Marcel Apfelbaum
The following changes since commit
a05f8ecd88f15273d033b6f044b850a8af84a5b8:Merge remote-tracking branch 'remotes/alistair/tags/pull-riscv-to-apply-20201217-1' into staging (2020-12-18 11:12:35 +0000)
are available in the Git repository at:
https://github.com/marcel-apf/qemu tags/rdma-pull-request
Quoted 9 lines
for you to fetch changes up to
eed31bc5e2e9cc68626d51e7a10914dc52c370f8:contrib/rdmacm-mux: Fix error condition in
hash_tbl_search_fd_by_ifid()(2020-12-18 20:15:42 +0200)----------------------------------------------------------------
RDMA queue* bug fix in contrib/rdmacm-mux
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.0
for any user-visible changes.
-- PMM