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.2.31~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72a2bd8e49609b2b6f9d170326f70dbbd8f8b8a;p=pandora-kernel.git tracing: Don't call page_to_pfn() if page is NULL commit 85f2a2ef1d0ab99523e0b947a2b723f5650ed6aa upstream. 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 Acked-by: Mel Gorman Reviewed-by: Minchan Kim Signed-off-by: Wen Congyang Signed-off-by: Steven Rostedt Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed