From: Rasmus Villemoes Date: Mon, 29 Apr 2013 22:08:23 +0000 (-0700) Subject: mm: madvise: complete input validation before taking lock X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~128^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84d96d897671cfb386e722acbefdb3a79e115a8a;p=pandora-kernel.git mm: madvise: complete input validation before taking lock In madvise(), there doesn't seem to be any reason for taking the ¤t->mm->mmap_sem before start and len_in have been validated. Incidentally, this removes the need for the out: label. [akpm@linux-foundation.org: s/out_plug/out/, per David] Signed-off-by: Rasmus Villemoes Acked-by: KOSAKI Motohiro Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed