diff options
author | Sandeep Dhavale <[email protected]> | 2024-06-24 15:02:05 -0700 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2024-06-26 17:02:15 +0800 |
commit | 9d01f6f6d8b57131c74810739b9d65141062e4c0 (patch) | |
tree | 17b3b7b0e3f4b37f06b7d579f5ca634f9b6e46a2 /scripts/generate_rust_analyzer.py | |
parent | f2661062f16b2de5d7b6a5c42a9a5c96326b8454 (diff) |
erofs: fix possible memory leak in z_erofs_gbuf_exit()
Because we incorrectly reused of variable `i` in `z_erofs_gbuf_exit()`
for inner loop, we may exit early from outer loop resulting in memory
leak. Fix this by using separate variable for iterating through inner loop.
Fixes: f36f3010f676 ("erofs: rename per-CPU buffers to global buffer pool and make it configurable")
Signed-off-by: Sandeep Dhavale <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions