Re: [PATCH v4 1/7] md/raid10: fix r10bio leak in raid10_write_request() error paths

"yu kuai" <[email protected]>
Newsgroups gmane.linux.raid,gmane.linux.kernel
Message-ID <[email protected]>
在 2026/7/10 18:15, Abd-Alrhman Masalkhi 写道:

> When raid10_write_request() fails because REQ_NOWAIT is set, the
> allocated r10_bio is not freed before returning, resulting in a memory
> leak. Free r10_bio before returning from the REQ_NOWAIT error paths.
>
> Fixes: c9aa889b035f ("md: raid10 add nowait support")
> Reported-by: sashiko-bot<[email protected]>
> Closes:https://lore.kernel.org/linux-raid/[email protected]/
> Signed-off-by: Abd-Alrhman Masalkhi<[email protected]>
Reviewed-by: Yu Kuai <[email protected]>

-- 
Thanks,
Kuai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.