tracing: Do not call kmem_cache_free() on allocation failure
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 7 Jun 2013 06:07:48 +0000 (15:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2013 16:47:31 +0000 (09:47 -0700)
commitb0cfaffa7e183719436a7a2b1b814afb5748c05c
tree739355350e366ebcc49c302ce3b3a10e957d9a1e
parentb460440f81f11175bdc657ee28a2421f8a02d209
tracing: Do not call kmem_cache_free() on allocation failure

commit aaf6ac0f0871cb7fc0f28f3a00edf329bc7adc29 upstream.

There's no point calling it when _alloc() failed.

Link: http://lkml.kernel.org/r/1370585268-29169-1-git-send-email-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_events.c