summaryrefslogtreecommitdiffstats
path: root/hw/core/machine.c
diff options
context:
space:
mode:
authorAlex Williamson2018-08-23 18:45:57 +0200
committerAlex Williamson2018-08-23 18:45:57 +0200
commita1c0f886496cfb4c336f8eb4155ed424567d653e (patch)
tree3513a6ca6bb3831e4508fca9c41d3e3f2ccfa32a /hw/core/machine.c
parentMerge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-re... (diff)
downloadqemu-a1c0f886496cfb4c336f8eb4155ed424567d653e.tar.gz
qemu-a1c0f886496cfb4c336f8eb4155ed424567d653e.tar.xz
qemu-a1c0f886496cfb4c336f8eb4155ed424567d653e.zip
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 <alex.williamson@redhat.com>
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions