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, 30 Mar 2015 18:54:45 +0000 (12:54 -0600)
commit4800cb60a372258e55a378eb864fab3ee84d3bcd
treeb43482cc15f95fdc98d3875a479868e6b7d9ca67
parent1e35914520110d2cb1e3ab3790fb31339a277d76
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