diff options
author | Avihai Horon <avihaih@nvidia.com> | 2023-03-07 12:54:37 +0000 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-03-07 07:20:32 -0700 |
commit | db9b829b15999b47f3e4f6fbede743b6f8686110 (patch) | |
tree | c7768757573bcef8d77d611843c1ed7788f08641 /block | |
parent | 3e2413a6520e5b6d8360395b6b423332abfb3362 (diff) | |
download | qemu-db9b829b15999b47f3e4f6fbede743b6f8686110.zip qemu-db9b829b15999b47f3e4f6fbede743b6f8686110.tar.gz qemu-db9b829b15999b47f3e4f6fbede743b6f8686110.tar.bz2 |
vfio/common: Fix wrong %m usages
There are several places where the %m conversion is used if one of
vfio_dma_map(), vfio_dma_unmap() or vfio_get_dirty_bitmap() fail.
The %m usage in these places is wrong since %m relies on errno value while
the above functions don't report errors via errno.
Fix it by using strerror() with the returned value instead.
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20230307125450.62409-3-joao.m.martins@oracle.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions