summaryrefslogtreecommitdiff
path: root/include/linux/kernelcapi.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-03-10 15:38:54 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-17 11:13:13 +0200
commit133008af833b4f2e021d2c294c29c70364a3f0ba (patch)
tree1cb3988df577b9dc26b1913f6b9dae2736188d3f /include/linux/kernelcapi.h
parent1d2c6c6e37fe5de11fd01a82badf03390e12df7a (diff)
md/raid10: fix memleak for 'conf->bio_split'
[ Upstream commit c9ac2acde53f5385de185bccf6aaa91cf9ac1541 ] 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 <yukuai3@huawei.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20230310073855.1337560-6-yukuai1@huaweicloud.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/kernelcapi.h')
0 files changed, 0 insertions, 0 deletions