]> git.proxmox.com Git - mirror_qemu.git/commit
hw/rdma: Do not call rdma_backend_del_gid on an empty gid
authorYuval Shaia <yuval.shaia@oracle.com>
Fri, 21 Dec 2018 14:40:36 +0000 (16:40 +0200)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 22 Dec 2018 09:09:57 +0000 (11:09 +0200)
commit305fd2ba06f49c8d969a8e02113e105304fd9422
treef2e858091eed10675ff79f06729ba52a5c664b70
parent9a3053d2e8104c9c8192d79c6294918a6fb7742b
hw/rdma: Do not call rdma_backend_del_gid on an empty gid

When device goes down the function fini_ports loops over all entries in
gid table regardless of the fact whether entry is valid or not. In case
that entry is not valid we'd like to skip from any further processing in
backend device.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/rdma_rm.c