diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-12-14 04:31:54 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-14 17:51:11 +0100 |
commit | 452af7dc59033a76372d51a24682503377872b11 (patch) | |
tree | fe841b8e372feb8ee3ce3d8bc55e0164114aceee /block | |
parent | block, bfq: fix possible uaf for 'bfqq->bic' (diff) | |
download | linux-452af7dc59033a76372d51a24682503377872b11.tar.xz linux-452af7dc59033a76372d51a24682503377872b11.zip |
block, bfq: don't return bfqg from __bfq_bic_change_cgroup()
The return value is not used, hence remove it.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221214033155.3455754-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/bfq-cgroup.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c index 627476bc6495..23dc355a106d 100644 --- a/block/bfq-cgroup.c +++ b/block/bfq-cgroup.c @@ -724,9 +724,9 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq, * sure that the reference to cgroup is valid across the call (see * comments in bfq_bic_update_cgroup on this issue) */ -static void *__bfq_bic_change_cgroup(struct bfq_data *bfqd, - struct bfq_io_cq *bic, - struct bfq_group *bfqg) +static void __bfq_bic_change_cgroup(struct bfq_data *bfqd, + struct bfq_io_cq *bic, + struct bfq_group *bfqg) { struct bfq_queue *async_bfqq = bic_to_bfqq(bic, 0); struct bfq_queue *sync_bfqq = bic_to_bfqq(bic, 1); @@ -776,8 +776,6 @@ static void *__bfq_bic_change_cgroup(struct bfq_data *bfqd, } } } - - return bfqg; } void bfq_bic_update_cgroup(struct bfq_io_cq *bic, struct bio *bio) |