diff --git a/block/blk-core.c b/block/blk-core.c index ee33590f54eb..4a36377df394 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1180,6 +1180,7 @@ out_exit_flush_rq: q->exit_rq_fn(q, q->fq->flush_rq); out_free_flush_queue: blk_free_flush_queue(q->fq); + q->fq = NULL; return -ENOMEM; } EXPORT_SYMBOL(blk_init_allocated_queue);