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)
committerJens Axboe <axboe@fb.com>
Fri, 13 Mar 2015 14:22:32 +0000 (08:22 -0600)
commit9a30b096b543932de218dd3501b5562e00a8792d
tree7194bdfc9fabf90881612c2fe442551556dee8d3
parentb8be79b7144527990377cb032feb5220170712b3
blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path

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>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c