Re: [PATCH] tracing: Check result of ring_buffer_read_prepare()

2013-04-12 Thread Steven Rostedt
On Wed, 2013-04-10 at 10:55 +0900, Namhyung Kim wrote: > From: Namhyung Kim > > The ring_buffer_read_prepare() can return NULL if memory allocation > fails. Fail out in this case instead of succedding and then having > no output. > > Suggested-by: Steven Rostedt > Signed-off-by: Namhyung Kim

Re: [PATCH] tracing: Check result of ring_buffer_read_prepare()

2013-04-12 Thread Steven Rostedt
On Wed, 2013-04-10 at 10:55 +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com The ring_buffer_read_prepare() can return NULL if memory allocation fails. Fail out in this case instead of succedding and then having no output. Suggested-by: Steven Rostedt

[PATCH] tracing: Check result of ring_buffer_read_prepare()

2013-04-09 Thread Namhyung Kim
From: Namhyung Kim The ring_buffer_read_prepare() can return NULL if memory allocation fails. Fail out in this case instead of succedding and then having no output. Suggested-by: Steven Rostedt Signed-off-by: Namhyung Kim --- kernel/trace/trace.c | 22 ++ 1 file changed,

[PATCH] tracing: Check result of ring_buffer_read_prepare()

2013-04-09 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com The ring_buffer_read_prepare() can return NULL if memory allocation fails. Fail out in this case instead of succedding and then having no output. Suggested-by: Steven Rostedt rost...@goodmis.org Signed-off-by: Namhyung Kim namhy...@kernel.org ---