From: Naoya Horiguchi Date: Mon, 7 Apr 2014 22:36:54 +0000 (-0700) Subject: mm/hugetlb.c: add NULL check of return value of huge_pte_offset X-Git-Tag: v3.15-rc1~57^2~154 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9af0c5dfdaf0b2e1a8bab7fbf6f29138947d534;p=pandora-kernel.git mm/hugetlb.c: add NULL check of return value of huge_pte_offset huge_pte_offset() could return NULL, so we need NULL check to avoid potential NULL pointer dereferences. Signed-off-by: Naoya Horiguchi Cc: Mel Gorman Cc: Sasha Levin Cc: Kirill A. Shutemov Cc: Aneesh Kumar K.V Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed