Re: [v3.2-v3.4 stable version][PATCH 1/2] ring-buffer: Fix NULLpointer if rb_set_head_page() fails

From: Ben Hutchings
Date: Thu Dec 27 2012 - 10:55:25 EST


On Fri, 2012-11-30 at 11:18 -0500, Steven Rostedt wrote:
> 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@xxxxxxxxxxxxxxx # 3.0+
> Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
[...]

Added to the queue for 3.2, thanks.

Ben.

--
Ben Hutchings
The world is coming to an end. Please log off.

Attachment: signature.asc
Description: This is a digitally signed message part