]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: fix a hd_struct leak in blkcg_fill_root_iostats
authorChristoph Hellwig <hch@lst.de>
Sat, 14 Nov 2020 18:12:46 +0000 (19:12 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 Nov 2020 18:17:34 +0000 (11:17 -0700)
commit3f0ecb75ad8b77aee98b71b3c58e3d29ada00eed
tree25d8b2e78186bf8150178bb30c6ad1d8df29f3fa
parent8e5f6881bc97c56288e6212eb8d6748999d348c5
blk-cgroup: fix a hd_struct leak in blkcg_fill_root_iostats

disk_get_part needs to be paired with a disk_put_part.

Cc: stable@vger.kernel.org
Fixes: 4d018b7c51a ("blk-cgroup: show global disk stats in root cgroup io.stat")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c