]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68067ef22e913c4d687bed402244307b40c184f2
treef79851f1b4ecb03a3d0475b0982f6cf0e96beb48
parentf4c23e1f44ec1c561b2ae606ea3b3a268926f589
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