mm/hugetlb: check for pte NULL pointer in __page_check_address()
authorJianguo Wu <wujianguo@huawei.com>
Thu, 19 Dec 2013 01:08:59 +0000 (17:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 19 Dec 2013 03:04:52 +0000 (19:04 -0800)
commit98398c32f6687ee1e1f3ae084effb4b75adb0747
treeb260bca32fc6148340d88e1cdf1f8eb646e4f3f0
parent7ac181568342ec618d4da1ab03c2babcaa7ee84f
mm/hugetlb: check for pte NULL pointer in __page_check_address()

In __page_check_address(), if address's pud is not present,
huge_pte_offset() will return NULL, we should check the return value.

Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: qiuxishi <qiuxishi@huawei.com>
Cc: Hanjun Guo <guohanjun@huawei.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c