summaryrefslogtreecommitdiff
path: root/kernel/scs.c
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-01-25 12:07:15 +0800
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-01-27 19:15:44 -0500
commite629e7b525a179e29d53463d992bdee759c950fb (patch)
tree9b3e6b47fb8de12ad01e28e23708d55c02a65b80 /kernel/scs.c
parent4ed308c445a1e3abac8f6c17928c1cb533867e38 (diff)
tracing/histogram: Fix a potential memory leak for kstrdup()
kfree() is missing on an error path to free the memory allocated by kstrdup(): p = param = kstrdup(data->params[i], GFP_KERNEL); So it is better to free it via kfree(p). Link: https://lkml.kernel.org/r/tencent_C52895FD37802832A3E5B272D05008866F0A@qq.com Cc: stable@vger.kernel.org Fixes: d380dcde9a07c ("tracing: Fix now invalid var_ref_vals assumption in trace action") Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/scs.c')
0 files changed, 0 insertions, 0 deletions