From: Steven Rostedt Date: Fri, 30 Nov 2012 03:27:22 +0000 (-0500) Subject: ring-buffer: Fix NULL pointer if rb_set_head_page() fails X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~76^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54f7be5b831254199522523ccab4c3d954bbf576;p=pandora-kernel.git ring-buffer: Fix NULL pointer if rb_set_head_page() fails 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: Steven Rostedt --- Reading git-diff-tree failed