[Qemu-devel] [PATCH v2] block/nvme: fix Coverity reports

2018-02-12 Thread Fam Zheng
From: Paolo Bonzini 1) string not null terminated in sysfs_find_group_file 2) NULL pointer dereference and dead local variable in nvme_init. Signed-off-by: Paolo Bonzini Signed-off-by: Fam Zheng --- v2: Fix error path. ---

[Qemu-devel] [PATCH v2] block/nvme: fix Coverity reports

2018-02-09 Thread Paolo Bonzini
1) string not null terminated in sysfs_find_group_file 2) NULL pointer dereference and incorrect Error* usage in nvme_init. Signed-off-by: Paolo Bonzini --- block/nvme.c| 10 +++--- util/vfio-helpers.c | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-)