block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx
authorShenghui Wang <shhuiw@foxmail.com>
Mon, 1 Apr 2019 13:40:36 +0000 (21:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Apr 2019 14:20:06 +0000 (08:20 -0600)
commitb9a1ff504b9492ad6beb7d5606e0e3365d4d8499
treefe67ce2d34f93cddbebcd8b4abd4b0df15f1d808
parent42b1bd33dcdef4ffd98f695e188bab82f9fa46d8
block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx

kfree() can leak the hctx->fq->flush_rq field.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c