blk-cgroup: fix error unwinding in blkcg_init_queue
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Sep 2022 18:04:45 +0000 (20:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Sep 2022 01:09:31 +0000 (19:09 -0600)
commit33dc62796cb657a633050138a86253fb2a553713
treef79851f1b4ecb03a3d0475b0982f6cf0e96beb48
parentf168420c62e7a106961f2489a89f6ade84fe3f27
blk-cgroup: fix error unwinding in blkcg_init_queue

When blk_throtl_init fails, we need to call blk_ioprio_exit.  Switch to
proper goto based unwinding to fix this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220921180501.1539876-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c