diff options
author | Greg Kurz <groug@kaod.org> | 2020-12-15 18:36:51 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-01-06 11:09:59 +1100 |
commit | 73231f7c5fa135274682c3510d3a0b0d4f2628a1 (patch) | |
tree | 51331ccba107d5c7fb636ae894c9b4a0a2a4ce5b /hw/usb/u2f-passthru.c | |
parent | 0270d74ef886235051c13c39b0de88500c628a02 (diff) | |
download | qemu-73231f7c5fa135274682c3510d3a0b0d4f2628a1.zip qemu-73231f7c5fa135274682c3510d3a0b0d4f2628a1.tar.gz qemu-73231f7c5fa135274682c3510d3a0b0d4f2628a1.tar.bz2 |
spapr: DRC lookup cannot fail
All memory DRC objects are created during machine init. It is thus safe
to assume spapr_drc_by_id() cannot return NULL when hot-plug/unplugging
memory.
Make this clear with an assertion, like the code already does a few lines
above when looping over memory DRCs. This fixes Coverity reports 1437757
and 1437758.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160805381160.228955.5388294067094240175.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/usb/u2f-passthru.c')
0 files changed, 0 insertions, 0 deletions