ring-buffer: check for failed allocation in ring buffer benchmark
authorSteven Rostedt <srostedt@redhat.com>
Wed, 6 May 2009 16:40:51 +0000 (12:40 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 6 May 2009 16:49:20 +0000 (12:49 -0400)
The result of the allocation of the ring buffer read page in the
ring buffer bench mark does not check the return to see if a page
was actually allocated. This patch fixes that.

[ Impact: avoid NULL dereference ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

No differences found