From: Cyrill Gorcunov Date: Thu, 11 Mar 2010 21:50:16 +0000 (+0300) Subject: x86, perf: Fix NULL deref on not assigned x86_pmu X-Git-Tag: v2.6.35-rc1~522^2~200^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b861225a5890f22445f08ca9cc7a87cff276ff7;p=pandora-kernel.git x86, perf: Fix NULL deref on not assigned x86_pmu In case of not assigned x86_pmu and software events NULL dereference may being hit via x86_pmu::schedule_events method. Fix it by checking if x86_pmu is initialized at all. Signed-off-by: Cyrill Gorcunov Cc: Lin Ming Cc: Arnaldo Carvalho de Melo Cc: Stephane Eranian Cc: Robert Richter Cc: Frederic Weisbecker Cc: Peter Zijlstra LKML-Reference: <20100311215016.GG25162@lenovo> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed