]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb.c: add NULL check of return value of huge_pte_offset
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Mon, 7 Apr 2014 22:36:54 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:35:49 +0000 (16:35 -0700)
commit0674b5b0b88d85018f5bb4cf241000ff556e1aa5
tree2de13aa7095ee0b4aa8a7d47d9d89817a06a52a6
parent81f0bb278fd16c9e469a6ed2a5e8f01477c3bc09
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 <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c