]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/pagewalk.c: move pte null check
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Thu, 22 May 2014 00:42:43 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:43 +0000 (10:42 +1000)
commit9e9df4dda900317c0a431d096d1dface033ebbd9
tree46dd60e1feeeaac7347a3be1834ef1dedcf09230
parent3863b7ea2d73aff25266cc19ef971fdb668a4ce5
mm/pagewalk.c: move pte null check

huge_pte_offset() can return NULL, so we need check it before trying to
take page table lock to avoid a crash.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/pagewalk.c