From: Peter Zijlstra Date: Wed, 30 Dec 2009 15:00:35 +0000 (+0100) Subject: perf: Fix NULL deref in inheritance code X-Git-Tag: v2.6.33-rc3~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05cbaa2853cdfc255fdd04e65a82bfe9208c4e52;p=pandora-kernel.git perf: Fix NULL deref in inheritance code Liming found a NULL deref when a task has a perf context but no counters when it forks. This can occur in two cases, a race during construction where the fork hits after installing the context but before the first counter gets inserted, or more reproducably, a fork after the last counter is closed (which leaves the context around). Reported-by: Wang Liming Signed-off-by: Peter Zijlstra Cc: Frederic Weisbecker Cc: Paul Mackerras CC: LKML-Reference: <1262185684.7135.222.camel@laptop> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed