Chen Gang c9d13f5fc7 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>
2015-09-08 15:35:28 -07:00
..
2012-01-03 22:54:56 -05:00
2015-06-24 17:49:45 -07:00
2011-07-26 16:49:47 -07:00
2015-04-15 16:35:18 -07:00
2015-09-08 15:35:28 -07:00
2015-02-11 17:06:02 -08:00
2015-09-04 16:54:41 -07:00
2015-09-08 15:35:28 -07:00
2015-06-25 17:00:37 -07:00
2015-06-25 17:00:37 -07:00
2015-06-25 17:00:37 -07:00
2015-06-25 17:00:37 -07:00