recordmcount: Fix memory leaks in the uwrite function
stable inclusion from stable-v5.10.181 commit 2d9ca5f62f2ba160ff9c9be4adf401c46c04edef category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2d9ca5f62f2ba160ff9c9be4adf401c46c04edef -------------------------------- [ Upstream commit fa359d06 ] Common realloc mistake: 'file_append' nulled but not freed upon failure Link: https://lkml.kernel.org/r/20230426010527.703093-1-zenghao@kylinos.cn Signed-off-by:Hao Zeng <zenghao@kylinos.cn> Suggested-by:
Steven Rostedt <rostedt@goodmis.org> Signed-off-by:
Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit 02d5a857)
Loading
Please sign in to comment