]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitaa82ef2f6f036f9dc6c146d7cde7b986dad34fac
tree1c9f00627ae69a692be7390ad4c9c2af83820173
parentb7fc925b0afd4dd1ad63dea9d33a968d4dd19ba6
block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx

BugLink: https://bugs.launchpad.net/bugs/1838459
[ Upstream commit b9a1ff504b9492ad6beb7d5606e0e3365d4d8499 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
block/blk-mq.c