]> git.openfabrics.org - ~emulex/infiniband.git/commit
blk-mq: free hctx->ctx_map when init failed
authorMing Lei <tom.leiming@gmail.com>
Sat, 19 Apr 2014 10:00:16 +0000 (18:00 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 21 Apr 2014 16:38:34 +0000 (10:38 -0600)
commit11471e0d04f3762b9216d8421ce6e9d89b0bf450
tree1127998724da07ee384d3464812d60d94f311284
parentdc4a93078b8a6a10d2dcaba76ab488d6dbe73922
blk-mq: free hctx->ctx_map when init failed

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