]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@fb.com>
Fri, 13 Mar 2015 14:22:32 +0000 (08:22 -0600)
commit2489247b7d064bdfdece9c0b1891d31c141fba83
tree7194bdfc9fabf90881612c2fe442551556dee8d3
parent5e116b8dbe865a0abfa78ca91bef2bf1f0519207
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