commit | c9d13f5fc748a02cb5917a798f065681007342b9 | [log] [tgz] |
---|---|---|
author | Chen Gang <gang.chen.5i5j@gmail.com> | Tue Sep 08 15:04:08 2015 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Sep 08 15:35:28 2015 -0700 |
tree | 566dafe703c73afee482b789602efd8426833783 | |
parent | bde43c6c9f4f360ae549a0ed9f10a3e62e363aca [diff] |
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>