tracing: Do not risk busy looping in buffer splice
authorRabin Vincent <rabin@rab.in>
Thu, 6 Nov 2014 21:26:07 +0000 (22:26 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 10 Nov 2014 21:47:31 +0000 (16:47 -0500)
If the read loop in trace_buffers_splice_read() keeps failing due to
memory allocation failures without reading even a single page then this
function will keep busy looping.

Remove the risk for that by exiting the function if memory allocation
failures are seen.

Link: http://lkml.kernel.org/r/1415309167-2373-2-git-send-email-rabin@rab.in
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

No differences found