From: Chen Gang Date: Tue, 8 Sep 2015 22:04:08 +0000 (-0700) Subject: mm/mmap.c:insert_vm_struct(): check for failure before setting values X-Git-Tag: omap-for-v4.3/fixes-rc1~54^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9d13f5fc748a02cb5917a798f065681007342b9;p=pandora-kernel.git 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 Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed