diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-11-29 22:27:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-17 11:07:23 -0800 |
commit | 7c3432b14e30e1aebb7a19ea52a05928b383b272 (patch) | |
tree | 6d2e2a92a95865defda0c84fe9347a15b494b9b8 /scripts/patch-kernel | |
parent | 5bab98768136ee54b82ef6dd7fc0ec1c41ef8431 (diff) |
ring-buffer: Fix NULL pointer if rb_set_head_page() fails
commit 54f7be5b831254199522523ccab4c3d954bbf576 upstream.
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.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions