Searched hist:c9d13f5f (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | mmap.c | c9d13f5f Tue Sep 08 17:04:08 CDT 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> c9d13f5f Tue Sep 08 17:04:08 CDT 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>
|