Skip to content

block: add NULL checks for bic in bfq_bfqq_save_state function#803

Open
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1090341=>linus-master
Open

block: add NULL checks for bic in bfq_bfqq_save_state function#803
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1090341=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 6, 2026

Pull request for series with
subject: block: add NULL checks for bic in bfq_bfqq_save_state function
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1090341

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 6, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1090341
version: 2

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 7, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1090740
version: 3

When the `bic` variable is null, referencing `bfqq_data` through `bic` will
cause the program to crash. Therefore, the null check for `bic` should be
moved to the beginning of the function to prevent referencing a null pointer.

Fixes:fd571df0ac5b("block, bfq: turn bfqq_data into an array in bfq_io_cq")
Signed-off-by: yanlonglong <yanlonglong@kylinos.cn>
@blktests-ci blktests-ci Bot added V3 and removed V2 labels May 7, 2026
@blktests-ci blktests-ci Bot force-pushed the series/1090341=>linus-master branch from df276bf to f9c3345 Compare May 7, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants