]> Git Repo - qemu.git/commit - hw/vfio/pci.c
vfio/pci: Handle subsystem realpath() returning NULL
authorAlex Williamson <[email protected]>
Thu, 23 Aug 2018 16:45:57 +0000 (10:45 -0600)
committerAlex Williamson <[email protected]>
Thu, 23 Aug 2018 16:45:57 +0000 (10:45 -0600)
commita1c0f886496cfb4c336f8eb4155ed424567d653e
tree3513a6ca6bb3831e4508fca9c41d3e3f2ccfa32a
parent3392fbee4e435658733bbe9aab23392660558b59
vfio/pci: Handle subsystem realpath() returning NULL

Fix error reported by Coverity where realpath can return NULL,
resulting in a segfault in strcmp().  This should never happen given
that we're working through regularly structured sysfs paths, but
trivial enough to easily avoid.

Fixes: 238e91728503 ("vfio/ccw/pci: Allow devices to opt-in for ballooning")
Signed-off-by: Alex Williamson <[email protected]>
hw/vfio/pci.c
This page took 0.02498 seconds and 4 git commands to generate.