]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/proc/task_mmu.c: assume non-NULL vma in pagemap_hugetlb()
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Wed, 14 May 2014 00:01:36 +0000 (10:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:01:36 +0000 (10:01 +1000)
commit9135734c887ac6361e85b3dc9b567f22ca50cca1
tree0599c001556f302c6376633ab26f191341a7907b
parent18e08edae9ee442c42c759330bde53faedc5bde4
fs/proc/task_mmu.c: assume non-NULL vma in pagemap_hugetlb()

Fengguang reported smatch error about potential NULL pointer access.

In updated page table walker, we never run ->hugetlb_entry() callback
on the address without vma. This is because __walk_page_range() checks
it in advance. So we can assume non-NULL vma in pagemap_hugetlb().

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c