From 84d96d897671cfb386e722acbefdb3a79e115a8a Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Mon, 29 Apr 2013 15:08:23 -0700 Subject: [PATCH] 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-format-patch failed