Searched hist:"453095 e98dc2cefba81dae800614f136f3c1c341" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/util/ |
H A D | vfio-helpers.c | diff 453095e98dc2cefba81dae800614f136f3c1c341 Thu Sep 02 02:00:22 CDT 2021 Philippe Mathieu-Daudé <philmd@redhat.com> util/vfio-helpers: Use error_setg in qemu_vfio_find_[fixed/temp]_iova
Both qemu_vfio_find_fixed_iova() and qemu_vfio_find_temp_iova() return an errno which is unused (or overwritten). Have them propagate eventual errors to callers, returning a boolean (which is what the Error API recommends, see commit e3fe3988d78 "error: Document Error API usage rules" for rationale).
Suggested-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20210902070025.197072-9-philmd@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|