]> 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>
Thu, 22 May 2014 00:42:42 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:42 +0000 (10:42 +1000)
commit5ed3c13a02ba8c36ab5dd7fc890f77a2ed4fc14c
tree7cc90c7a40009c737d458f997db41f702ceeed8e
parent0cf52a54a27201160f154222484b5bc7dfbf9ac5
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