Prev: [async_tx-next PATCH v2 1/2] fsldma: Fix cookie issues
Next: [PATCH 4/7] tracing: Fix typo in prof_sysexit_enable()
From: Steven Rostedt on 25 Feb 2010 14:50 From: Wenji Huang <wenji.huang(a)oracle.com> Discard freeing field->type since it is not necessary. Reviewed-by: Li Zefan <lizf(a)cn.fujitsu.com> Signed-off-by: Wenji Huang <wenji.huang(a)oracle.com> LKML-Reference: <1266997226-6833-5-git-send-email-wenji.huang(a)oracle.com> Signed-off-by: Steven Rostedt <rostedt(a)goodmis.org> --- kernel/trace/trace_events.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index c2a3077..3f972ad 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -60,10 +60,8 @@ int trace_define_field(struct ftrace_event_call *call, const char *type, return 0; err: - if (field) { + if (field) kfree(field->name); - kfree(field->type); - } kfree(field); return -ENOMEM; -- 1.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |