diff --git a/block/blk-core.c b/block/blk-core.c index 03a4ea93a5f365ab11ab24c65815d6658f7144a3..23cd1b7770e706c1824cd819c8ec91209ab1cbd0 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1184,6 +1184,7 @@ int blk_init_allocated_queue(struct request_queue *q) 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);