diff options
author | 2021-09-07 10:32:53 +0300 | |
---|---|---|
committer | 2021-09-14 18:10:43 -0400 | |
commit | be9c6bad9b46451ba5bb8d366c51e2475f374981 (patch) | |
tree | 486dded4a933d50ccc9b6ddec80263ac174ff582 /include/linux/fpga/fpga-mgr.h | |
parent | vdpa/mlx5: Avoid executing set_vq_ready() if device is reset (diff) | |
download | linux-dev-be9c6bad9b46451ba5bb8d366c51e2475f374981.tar.xz linux-dev-be9c6bad9b46451ba5bb8d366c51e2475f374981.zip |
vdpa: potential uninitialized return in vhost_vdpa_va_map()
The concern here is that "ret" can be uninitialized if we hit the
"goto next" condition on every iteration through the loop.
Fixes: 41ba1b5f9d4b ("vdpa: Support transferring virtual addressing during DMA mapping")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210907073253.GB18254@kili
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions