]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: consistently handle return value for helpers
authorJohn Levon <john.levon@nutanix.com>
Wed, 7 May 2025 15:20:10 +0000 (16:20 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:28 +0000 (12:42 +0200)
commit2e27becf17be231bc15588a51c0b61efec68d021
tree6943498c6cef733a48fcd1d9ed445560110b6e6c
parent5321e623ebe27deef7cfb793a71d23affa77d157
vfio: consistently handle return value for helpers

Various bits of code that call vfio device APIs should consistently use
the "return -errno" approach for passing errors back, rather than
presuming errno is (still) set correctly.

Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250507152020.1254632-6-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/pci.c