summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lightnvm')
-rw-r--r--drivers/lightnvm/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index 2c26af3d4ba8..5d7aa45f2e04 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -309,6 +309,7 @@ err_sysfs:
tt->exit(targetdata);
err_init:
blk_cleanup_queue(tqueue);
+ tdisk->queue = NULL;
err_disk:
put_disk(tdisk);
err_dev: