lttng lib: ring buffer move null pointer check to open
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 9 Dec 2011 14:26:52 +0000 (09:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 9 Dec 2011 14:26:52 +0000 (09:26 -0500)
commit733ce41dc418c2b7ea1c8c6d569f7951836b29f8
tree3583da814d699dbd44c6fe08959142600ead767c
parent1deffc9b1233b244190924ebd315db7b3c802f85
lttng lib: ring buffer move null pointer check to open

Let's move the NULL buf check to the file "open", where it belongs.  The
"open" file operation is the actual interface between lib ring buffer
and the modules using it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_mmap.c
lib/ringbuffer/ring_buffer_vfs.c
This page took 0.028428 seconds and 4 git commands to generate.