]> 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)
commitc365411c4b12cf672c805115e9e2f20142f890ac
tree0b89b27d5406615c5c235347583086bb6e3c7815
parent0c1e872debca6bd45871d3a1d921db907641d1f0
block: bfq: swap puts in bfqg_and_blkg_put

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

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