nvdimm: virtio_pmem: reset the device if nvdimm_bus_register() fails
init_vq() enables the request queue on the device. If
nvdimm_bus_register() then fails, probe deletes the queue without
resetting the device, so the queue stays enabled and the next probe of
the device fails in setup_vq() with -ENOENT. Reset the device before
deleting the queue, as the later error path and remove() do.
Fixes: 6e84200c0a29 ("virtio-pmem: Add virtio pmem driver")
Signed-off-by: Yuho Choi <oss.patchbox@gmail.com>
Message-ID: <20261203050747.1683432-2-oss.patchbox@gmail.com>
1 file changed