Revert "block, bfq: fix possible UAF for bfqq->bic with merge chain"

This reverts commit 7c6f64c78f.
This commit is contained in:
Ksawlii 2024-11-24 00:23:28 +01:00
parent 8b80716260
commit 293f547e21

View file

@ -6277,8 +6277,7 @@ static struct bfq_queue *bfq_init_rq(struct request *rq)
* addition, if the queue has also just been split, we have to
* resume its state.
*/
if (likely(bfqq != &bfqd->oom_bfqq) && !bfqq->new_bfqq &&
bfqq_process_refs(bfqq) == 1) {
if (likely(bfqq != &bfqd->oom_bfqq) && bfqq_process_refs(bfqq) == 1) {
bfqq->bic = bic;
if (split) {
/*