Re: 2.3.6 (mmap fails)

Alex Buell (alex.buell@tahallah.demon.co.uk)
Fri, 11 Jun 1999 07:33:20 +0100 (BST)


On Thu, 10 Jun 1999, Bill Broadhurst wrote:

> > Anybody with more knowledge than me have any ideas? If not, I'll try and
> > dig up a gcc 2.7.2 and see if I run into the same problem

Someone posted this patch - try it. I don't have time to do it now. =)

--- mm/mmap.c~ Thu Jun 10 09:49:31 1999
+++ mm/mmap.c Tue Jun 11 21:48:50 2019
@@ -728,6 +728,9 @@
struct vm_area_struct * vma;
unsigned long flags, retval;

+ if ((len = PAGE_ALIGN(len)) == 0)
+ return addr;
+
/*
* mlock MCL_FUTURE?
*/

Cheers,
Alex
--
"The bible was written by the same people who thought the world was flat!"

http://www.tahallah.demon.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/