]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: fix missing free on error path of blk_iocost_init()
authorTejun Heo <tj@kernel.org>
Thu, 29 Aug 2019 15:53:06 +0000 (08:53 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Aug 2019 15:59:14 +0000 (09:59 -0600)
commitd30615e4c4c825e7a172b87051053f123195f0b7
treee468064878a4d18da9959d83e3668709b2767afa
parenta1433e8b83f2312e9da8b13ded64e911c9137ec0
blkcg: fix missing free on error path of blk_iocost_init()

blk_iocost_init() forgot to free its percpu stat on the error path.
Fix it.

Fixes: 804998b28924 ("blkcg: implement blk-iocost")
Reported-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c