]> Git Repo - qemu.git/commit
vfio: don't ignore return value of migrate_add_blocker
authorJens Freimann <[email protected]>
Mon, 18 Nov 2019 17:41:48 +0000 (10:41 -0700)
committerAlex Williamson <[email protected]>
Mon, 18 Nov 2019 17:41:48 +0000 (10:41 -0700)
commited92369a5725ae42c28128778f154798f1464c26
tree778e9042c97fad225905473cc23ac29f072f51fa
parent1335d64323be87ee14c766c59fabfb7e9acd7af7
vfio: don't ignore return value of migrate_add_blocker

When an error occurs in migrate_add_blocker() it sets a
negative return value and uses error pointer we pass in.
Instead of just looking at the error pointer check for a negative return
value and avoid a coverity error because the return value is
set but never used. This fixes CID 1407219.

Reported-by: Coverity (CID 1407219)
Fixes: f045a0104c8c ("vfio: unplug failover primary device before migration")
Signed-off-by: Jens Freimann <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
hw/vfio/pci.c
This page took 0.025195 seconds and 4 git commands to generate.