Re: don't let mmap allocate down to zero

From: Rik van Riel
Date: Wed Jan 26 2005 - 21:52:35 EST


On Wed, 26 Jan 2005, linux-os wrote:

Wrong! A returned value of 0 is perfectly correct for mmap()
when mapping a fixed address. The attached code shows it working
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The code that is patched is only run in case of a non-MAP_FIXED
mmap() call...

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/