From: Zlatko Calusic Date: Fri, 28 Dec 2012 02:16:38 +0000 (+0100) Subject: mm: fix null pointer dereference in wait_iff_congested() X-Git-Tag: v3.8-rc2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecccd1248d6e6986130ffcc3b0d003cb46a485c0;p=pandora-kernel.git mm: fix null pointer dereference in wait_iff_congested() An unintended consequence of commit 4ae0a48b5efc ("mm: modify pgdat_balanced() so that it also handles order-0") is that wait_iff_congested() can now be called with NULL 'struct zone *' producing kernel oops like this: BUG: unable to handle kernel NULL pointer dereference IP: [] wait_iff_congested+0x59/0x140 This trivial patch fixes it. Reported-by: Zhouping Liu Reported-and-tested-by: Sedat Dilek Cc: Andrew Morton Cc: Mel Gorman Cc: Hugh Dickins Signed-off-by: Zlatko Calusic Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed