summaryrefslogtreecommitdiffstats
path: root/page_cache.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-22 23:24:08 +0000
committerAlexander Graf <agraf@suse.de>2013-01-29 21:50:04 +0100
commitab290630fad0df42ee94a81b20c48d0da2dc6f66 (patch)
tree0705648901192d9cf15e94e40e177ac7a45f655f /page_cache.c
parentb73d35311098585dbdb375fdf8369b16c8222e12 (diff)
downloadhqemu-ab290630fad0df42ee94a81b20c48d0da2dc6f66.zip
hqemu-ab290630fad0df42ee94a81b20c48d0da2dc6f66.tar.gz
s390-virtio: Check for NULL device in reset hypercall
s390_virtio_bus_find_mem() may return a NULL VirtIOS390Device. If called with, e.g., args[0] == 0, this leads to a segfault. Fix this by adding error handling as done for other hypercalls. Present since baf0b55a9e57b909b1f8b0f732c0b10242867418 (Implement virtio reset). Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'page_cache.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud