Commit 02d5a857 authored by Hao Zeng's avatar Hao Zeng Committed by sanglipeng
Browse files

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: default avatarHao Zeng <zenghao@kylinos.cn>
Suggested-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent f28d5730
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment