Fix get_unmapped_area sanity tests
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 May 2005 05:43:37 +0000 (22:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 May 2005 05:43:37 +0000 (22:43 -0700)
commit07ab67c8d0d7c1021343b7d5c045033d6bf7be69
tree5857098ebbb760afc8b0d722f119e06b3d1f6511
parent66e60f92518268f4d2a702a1c4ffbe1caacd6290
Fix get_unmapped_area sanity tests

As noted by Chris Wright, we need to do the full range of tests regardless
of whether MAP_FIXED is set or not, so re-organize get_unmapped_area()
slightly to do the sanity checks unconditionally.
include/linux/err.h
mm/mmap.c