• S
    ring-buffer: Fix NULL pointer if rb_set_head_page() fails · 54f7be5b
    Steven Rostedt 提交于
    The function rb_set_head_page() searches the list of ring buffer
    pages for a the page that has the HEAD page flag set. If it does
    not find it, it will do a WARN_ON(), disable the ring buffer and
    return NULL, as this should never happen.
    
    But if this bug happens to happen, not all callers of this function
    can handle a NULL pointer being returned from it. That needs to be
    fixed.
    
    Cc: stable@vger.kernel.org # 3.0+
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    54f7be5b
ring_buffer.c 112.4 KB