diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2012-09-20 14:04:47 +0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-09-20 15:51:16 -0400 |
commit | 85f2a2ef1d0ab99523e0b947a2b723f5650ed6aa (patch) | |
tree | be9256de42d2f2411355858fccb3c58aac8c5381 /include/asm-generic/tlb.h | |
parent | 20a36e39d59757252edbbdcf9574ae2998733ce9 (diff) | |
download | linux-3.10-85f2a2ef1d0ab99523e0b947a2b723f5650ed6aa.tar.gz linux-3.10-85f2a2ef1d0ab99523e0b947a2b723f5650ed6aa.tar.bz2 linux-3.10-85f2a2ef1d0ab99523e0b947a2b723f5650ed6aa.zip |
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 <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: stable <stable@vger.kernel.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/asm-generic/tlb.h')
0 files changed, 0 insertions, 0 deletions