]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 23 Apr 2015 03:32:10 +0000 (23:32 -0400)
commit06767df2716dd228bc94696862f165d14e5cc756
tree73b342f0fd48385029cd3ba8e582f5f37950c6fd
parent9da02d84fe5007faeb7bf9f1fbca93960ecf192c
blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path

[ Upstream commit 9a30b096b543932de218dd3501b5562e00a8792d ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
block/blk-mq.c