summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kurz2017-05-18 15:58:31 +0200
committerDavid Gibson2017-05-24 03:39:53 +0200
commit07572c0653a60769df406c16136e2cc9234692f5 (patch)
treefc27bbe4479ab1c1c12100f996264d897847265c /include
parentxics_kvm: cache already enabled vCPU ids (diff)
downloadqemu-07572c0653a60769df406c16136e2cc9234692f5.tar.gz
qemu-07572c0653a60769df406c16136e2cc9234692f5.tar.xz
qemu-07572c0653a60769df406c16136e2cc9234692f5.zip
spapr: ensure core_slot isn't NULL in spapr_core_unplug()
If we go that far on the path of hot-removing a core and we find out that the core-id is invalid, then we have a serious bug. Let's make it explicit with an assert() instead of dereferencing a NULL pointer. This fixes Coverity issue CID 1375404. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions