Fix OOPS caused by reference of config pointer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Dec 2011 21:37:51 +0000 (16:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Dec 2011 21:37:51 +0000 (16:37 -0500)
commit5a8fd222992df9bbb709836e5bf4ca053dd776c3
tree4895658b02f0437c97a1fc0b68e8651d88aae31e
parentdaaf627aaa66c434d9274c6616977a6edc07b6ca
Fix OOPS caused by reference of config pointer

The config pointer points to data that may vanish across the life-time
of the ring buffer stream references. It's only kept valid for the
duration between the channel create and destroy, but the streams can
keep an extra reference on the channel, and thus need the config to stay
valid.

Perform a copy of the config rather than keeping a pointer to it.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/backend_types.h
lib/ringbuffer/ring_buffer_backend.c
lib/ringbuffer/ring_buffer_frontend.c
lib/ringbuffer/ring_buffer_iterator.c
lib/ringbuffer/ring_buffer_mmap.c
lib/ringbuffer/ring_buffer_splice.c
lib/ringbuffer/ring_buffer_vfs.c
This page took 0.026421 seconds and 4 git commands to generate.