lkml.org 
[lkml]   [1999]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.3.6 (mmap fails)
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:2.411 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site