blk-mq: Fix memory leak in error handling
authorJes Sorensen <jsorensen@fb.com>
Fri, 19 Apr 2019 20:35:44 +0000 (16:35 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 May 2019 20:33:04 +0000 (14:33 -0600)
commit41de54c64811bf087c8464fdeb43c6ad8be2686b
treea489bff9589f120fe7bf570168ce014d76f034e9
parentfe2008640ae36e3920cf41507a84fb5d3227435a
blk-mq: Fix memory leak in error handling

If blk_mq_init_allocated_queue() fails, make sure to free the poll
stat callback struct allocated.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c