From: Wen Congyang Date: Thu, 20 Sep 2012 06:04:47 +0000 (+0800) Subject: tracing: Don't call page_to_pfn() if page is NULL X-Git-Tag: v3.6-rc7~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f2a2ef1d0ab99523e0b947a2b723f5650ed6aa;p=pandora-kernel.git tracing: Don't call page_to_pfn() if page is NULL When allocating memory fails, page is NULL. page_to_pfn() will cause the kernel panicked if we don't use sparsemem vmemmap. Link: http://lkml.kernel.org/r/505AB1FF.8020104@cn.fujitsu.com Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Andrew Morton Cc: stable Acked-by: Mel Gorman Reviewed-by: Minchan Kim Signed-off-by: Wen Congyang Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed