Files
qemu-ios/block
Fam Zheng ac141891ee nvme: Fix nvme_init error handling
It is wrong to leave this field as 1, as nvme_close() called in the
error handling code in nvme_file_open() will use it and try to free
s->queues again.

Another problem is the cleaning ups are duplicated between the fail*
labels of nvme_init() and nvme_file_open(), which calls nvme_close().

A third problem is nvme_close() misses g_free() and
event_notifier_cleanup().

Fix all of them.

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>

Message-Id: <20180712025420.4932-1-famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
(cherry picked from commit 9582f357bb)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2019-03-18 21:40:15 -05:00
..
2018-07-10 16:01:52 +02:00
2018-07-10 16:01:52 +02:00
2018-07-10 16:01:52 +02:00
2016-10-07 14:14:06 +02:00
2018-07-05 10:29:19 +02:00
2018-05-15 16:11:41 +02:00
2019-03-18 21:40:15 -05:00
2018-02-09 05:05:11 +01:00
2018-07-30 15:35:37 +02:00
2017-07-17 11:34:11 +08:00
2018-07-10 16:01:52 +02:00
2018-07-02 14:45:23 +02:00
…
2018-06-15 14:49:44 +02:00