]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
block: bfq: swap puts in bfqg_and_blkg_put
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 6 Sep 2018 08:05:44 +0000 (11:05 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Sep 2018 17:32:58 +0000 (11:32 -0600)
commitd5274b3cd6a814ccb2f56d81ee87cbbf51bd4cf7
tree0b89b27d5406615c5c235347583086bb6e3c7815
parent8b2ded1c94c06f841f8c1612bcfa33c85012a36b
block: bfq: swap puts in bfqg_and_blkg_put

Fix trivial use-after-free. This could be last reference to bfqg.

Fixes: 8f9bebc33dd7 ("block, bfq: access and cache blkg data only when safe")
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-cgroup.c