diff options
author | Pankaj Gupta | 2019-07-12 09:35:53 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2019-07-12 16:56:27 +0200 |
commit | 7b8a8474249eec97cd6a82f78b91183626fda65b (patch) | |
tree | 675b6afd6580b7b50454bff170a296ca234009ba /hw/timer/sun4v-rtc.c | |
parent | virtio pmem: fix wrong mem region condition (diff) | |
download | qemu-7b8a8474249eec97cd6a82f78b91183626fda65b.tar.gz qemu-7b8a8474249eec97cd6a82f78b91183626fda65b.tar.xz qemu-7b8a8474249eec97cd6a82f78b91183626fda65b.zip |
virtio pmem: remove memdev null check
Coverity reports that when we're assigning vi->size we handle the
"pmem->memdev is NULL" case; but we then pass it into
object_get_canonical_path(), which unconditionally dereferences it
and will crash if it is NULL. If this pointer can be NULL then we
need to do something else here.
We are removing 'pmem->memdev' null check here as memdev will never
be null in this function.
Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
Message-Id: <20190712073554.21918-3-pagupta@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'hw/timer/sun4v-rtc.c')
0 files changed, 0 insertions, 0 deletions