projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b1bd3
)
block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx
author
Shenghui Wang
<shhuiw@foxmail.com>
Mon, 1 Apr 2019 13:40:36 +0000
(21:40 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 2 Apr 2019 14:20:06 +0000
(08:20 -0600)
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
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index
3ff3d7b
..
f3b0d33
100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-2332,7
+2332,7
@@
static int blk_mq_init_hctx(struct request_queue *q,
return 0;
free_fq:
-
kfre
e(hctx->fq);
+
blk_free_flush_queu
e(hctx->fq);
exit_hctx:
if (set->ops->exit_hctx)
set->ops->exit_hctx(hctx, hctx_idx);