projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc4a930
)
blk-mq: free hctx->ctx_map when init failed
author
Ming Lei
<tom.leiming@gmail.com>
Sat, 19 Apr 2014 10:00:16 +0000
(18:00 +0800)
committer
Jens Axboe
<axboe@fb.com>
Mon, 21 Apr 2014 16:38:34 +0000
(10:38 -0600)
Avoid memory leak in the failure path.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index ee225cc312b86a38ad09c70097464a4b467b297c..5fbbb221d4997319ffd49cc277d3f4c14a5925c8 100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-1289,6
+1289,7
@@
static int blk_mq_init_hw_queues(struct request_queue *q,
blk_mq_unregister_cpu_notifier(&hctx->cpu_notifier);
kfree(hctx->ctxs);
+ kfree(hctx->ctx_map);
}
return 1;