Home
last modified time | relevance | path

Searched hist:c9d13f5fc748a02cb5917a798f065681007342b9 (Results 1 – 1 of 1) sorted by relevance

/linux/mm/
H A Dmmap.cdiff c9d13f5fc748a02cb5917a798f065681007342b9 Wed Sep 09 00:04:08 CEST 2015 Chen Gang <gang.chen.5i5j@gmail.com> mm/mmap.c:insert_vm_struct(): check for failure before setting values

There's no point in initializing vma->vm_pgoff if the insertion attempt
will be failing anyway. Run the checks before performing the
initialization.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>