]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path
authorMike Snitzer <snitzer@redhat.com>
Fri, 13 Mar 2015 03:53:26 +0000 (23:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:12 +0000 (10:10 +0200)
commite008be66e703bd64b6cf4d1ec1f19e4cb99d3dd6
tree2a953c806599d811f10e4281ab8a635629b9b5c8
parent630146a4fd63ff241f75ece369784fe6133964a2
blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path

commit 9a30b096b543932de218dd3501b5562e00a8792d upstream.

If percpu_ref_init() fails the allocated q and hctxs must get cleaned
up; using 'err_map' doesn't allow that to happen.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-mq.c