aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2023-03-10 15:38:54 +0800
committerSong Liu <[email protected]>2023-04-14 00:42:03 -0700
commitc9ac2acde53f5385de185bccf6aaa91cf9ac1541 (patch)
tree39128948b887bcf642ebe489d538e26db2b6977d /lib/test_fortify/write_overflow-strncpy-src.c
parent26208a7cffd0c7cbf14237ccd20c7270b3ffeb7e (diff)
md/raid10: fix memleak for 'conf->bio_split'
In the error path of raid10_run(), 'conf' need be freed, however, 'conf->bio_split' is missed and memory will be leaked. Since there are 3 places to free 'conf', factor out a helper to fix the problem. Fixes: fc9977dd069e ("md/raid10: simplify the splitting of requests.") Signed-off-by: Yu Kuai <[email protected]> Signed-off-by: Song Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions