diff options
author | Shivaprasad G Bhat <sbhat@linux.ibm.com> | 2020-02-27 07:42:49 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-03-17 09:41:14 +1100 |
commit | af7084e72b66e4c3008f7a70d5f2a06e11af7fbe (patch) | |
tree | bed3977bc613478d513fcc085d2087e0df4133cd /scripts/coverity-model.c | |
parent | 22062e54bb68f5ced71fbdb3f5f2bedb09a8e8c1 (diff) | |
download | qemu-af7084e72b66e4c3008f7a70d5f2a06e11af7fbe.zip qemu-af7084e72b66e4c3008f7a70d5f2a06e11af7fbe.tar.gz qemu-af7084e72b66e4c3008f7a70d5f2a06e11af7fbe.tar.bz2 |
spapr: Fix Coverity warning while validating nvdimm options
Fixes Coverity issue,
CID 1419883: Error handling issues (CHECKED_RETURN)
Calling "qemu_uuid_parse" without checking return value
nvdimm_set_uuid() already verifies if the user provided uuid is valid or
not. So, need to check for the validity during pre-plug validation again.
As this a false positive in this case, assert if not valid to be safe.
Also, error_abort if QOM accessor encounters error while fetching the uuid
property.
Reported-by: Coverity (CID 1419883)
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Message-Id: <158281096564.89540.4507375445765515529.stgit@lep8c.aus.stglabs.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/coverity-model.c')
0 files changed, 0 insertions, 0 deletions