diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-11-27 11:45:18 -0500 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2020-12-01 15:41:25 +0000 |
commit | e34f5b118b7400d987ecae1f3b53eca27074d279 (patch) | |
tree | 65c772f6b5207d33e11a11130257545302c743bc /lib/irq.h | |
parent | 9e01633253c24d7f15be36c8edd5d192601d1795 (diff) | |
download | libvfio-user-e34f5b118b7400d987ecae1f3b53eca27074d279.zip libvfio-user-e34f5b118b7400d987ecae1f3b53eca27074d279.tar.gz libvfio-user-e34f5b118b7400d987ecae1f3b53eca27074d279.tar.bz2 |
don't leak passed file descriptors on failure
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/irq.h')
-rw-r--r-- | lib/irq.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ handle_device_get_irq_info(vfu_ctx_t *vfu_ctx, uint32_t size, struct vfio_irq_info *irq_info_out); int handle_device_set_irqs(vfu_ctx_t *vfu_ctx, uint32_t size, - int *fds, int nr_fds, struct vfio_irq_set *irq_set); + int *fds, size_t nr_fds, struct vfio_irq_set *irq_set); #endif /* LIB_VFIO_USER_IRQ_H */ |