Fix: unregister cpu hotplug notifier on buffer alloc error
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 1 Sep 2016 21:52:09 +0000 (17:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 1 Sep 2016 22:15:11 +0000 (18:15 -0400)
commit54af4470d6bbd06b28a631c74d228e3ffaeaedad
treec968b6e552f1dba7a790beaa095687a7cef481bd
parentd1abf04d3d831c336cab98da07a1d728f833d8c9
Fix: unregister cpu hotplug notifier on buffer alloc error

The cpu hotplug notifier needs to be unregistered in the error path of
buffer allocation, else it eventually causes kernel OOPS when the kernel
accesses freed memory of the notifier block.

Fixes #1031

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_backend.c
This page took 0.025427 seconds and 4 git commands to generate.