]> git.baikalelectronics.ru Git - kernel.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)
commitda4afb0086a13e7b68a1ae64c757d1f9f62334d9
tree0b89b27d5406615c5c235347583086bb6e3c7815
parenta713cb6aeff40c889b85f804ad079970fc6512ed
block: bfq: swap puts in bfqg_and_blkg_put

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

Fixes: 45008274cf7c ("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