diff options
| author | Hongling Zeng <zenghongling@kylinos.cn> | 2026-08-25 09:55:01 +0800 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2026-09-11 15:08:15 +0200 |
| commit | 59932d7f7e48e2bd2017e8d4d9e1a3f2574436f1 (patch) | |
| tree | 2f2197d3aad5b1de7bdc1b5fbe39f436729d1095 /tools/lib/python | |
| parent | 26cb3a444d8ec1d15a3c951c30db1dc121e5e1a4 (diff) | |
| download | linux-next-59932d7f7e48e2bd2017e8d4d9e1a3f2574436f1.tar.gz linux-next-59932d7f7e48e2bd2017e8d4d9e1a3f2574436f1.zip | |
gfs2: move brelse() after buffer head accesses
The brelse() call happens before all buffer head accesses are complete.
While the reference counting prevents a real use-after-free in practice,
this pattern is error-prone for future maintenance.
Move the brelse() call to the end of the function to make the intent
clearer and eliminate potential static analysis warnings.
Suggested-by: Andreas Gruenbacher <agruenba@redhat.com>
Suggested-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
