]> www.infradead.org Git - users/dwmw2/qemu.git/commit
vfio/pci: fix use of freed memory
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 26 Jul 2017 17:38:18 +0000 (11:38 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 26 Jul 2017 17:38:18 +0000 (11:38 -0600)
commit96d2c2c57452f8b6bc3decae71435e7230f3432e
treeb346f5ddd658498080d5066932439d0e1876307e
parent418c69813f027cb1408aa2759022f5ca170a8c8c
vfio/pci: fix use of freed memory

hw/vfio/pci.c:308:29: warning: Use of memory after it is freed
        qemu_set_fd_handler(*pfd, NULL, NULL, vdev);
                            ^~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c