WSL2-Linux-Kernel/arch/metag/mm
Rickard Strandqvist 8bc613befa metag: hugetlbpage: Remove null pointer checks that could never happen
There are inconsistent NULL checks in
hugetlb_get_unmapped_area_existing(). The last conditional block in the
loop checks vma, but vma is dereferenced after that.

Due to the checks above however (bearing in mind after_huge is either 0
or 1) vma is guaranteed not to be NULL here, so remove that part of the
check.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
[james.hogan@imgtec.com: remove brackets and expand commit message]
Signed-off-by: James Hogan <james.hogan@imgtec.com>
2014-06-16 16:22:44 +01:00
..
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2013-05-02 10:16:16 -07:00
Makefile metag: Build infrastructure 2013-03-02 20:09:54 +00:00
cache.c metag/mm/cache: Restrict scope for metag_lnkget_probe 2013-06-13 12:55:28 +01:00
extable.c metag: Memory management 2013-03-02 20:09:19 +00:00
fault.c arch: mm: pass userspace fault flag to generic fault handler 2013-09-12 15:38:01 -07:00
highmem.c metag: Highmem support 2013-03-02 20:09:20 +00:00
hugetlbpage.c metag: hugetlbpage: Remove null pointer checks that could never happen 2014-06-16 16:22:44 +01:00
init.c memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00
ioremap.c metag: Memory handling 2013-03-02 20:09:19 +00:00
l2cache.c
maccess.c metag: Memory handling 2013-03-02 20:09:19 +00:00
mmu-meta1.c metag: Memory management 2013-03-02 20:09:19 +00:00
mmu-meta2.c metag: Memory management 2013-03-02 20:09:19 +00:00
numa.c memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00