diff options
author | Max Reitz <mreitz@redhat.com> | 2020-07-10 11:50:37 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2020-07-27 12:37:25 +0200 |
commit | 984c36781404592a6fbaa31ec6d25d6b8f933489 (patch) | |
tree | 5fc87fbd8fa35be5b2492852e33890d349ffc2dc /block/vmdk.c | |
parent | 4215d3413272ad6d1c6c9d0234450b602e46a74c (diff) | |
download | qemu-984c36781404592a6fbaa31ec6d25d6b8f933489.zip qemu-984c36781404592a6fbaa31ec6d25d6b8f933489.tar.gz qemu-984c36781404592a6fbaa31ec6d25d6b8f933489.tar.bz2 |
block/amend: Check whether the node exists
We should check whether the user-specified node-name actually refers to
a node. The simplest way to do that is to use bdrv_lookup_bs() instead
of bdrv_find_node() (the former wraps the latter, and produces an error
message if necessary).
Reported-by: Coverity (CID 1430268)
Fixes: ced914d0ab9fb2c900f873f6349a0b8eecd1fdbe
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200710095037.10885-1-mreitz@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Diffstat (limited to 'block/vmdk.c')
0 files changed, 0 insertions, 0 deletions