Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261960AbVA0CpX (ORCPT ); Wed, 26 Jan 2005 21:45:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262499AbVAZXnC (ORCPT ); Wed, 26 Jan 2005 18:43:02 -0500 Received: from mx1.redhat.com ([66.187.233.31]:17112 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S261804AbVAZSyV (ORCPT ); Wed, 26 Jan 2005 13:54:21 -0500 Date: Wed, 26 Jan 2005 13:54:11 -0500 (EST) From: Rik van Riel X-X-Sender: riel@chimarrao.boston.redhat.com To: linux-os cc: Bryn Reeves , Chris Friesen , Andrew Morton , linux-kernel@vger.kernel.org, James Antill Subject: Re: don't let mmap allocate down to zero In-Reply-To: Message-ID: References: <41F7D4B0.7070401@nortelnetworks.com> <1106762261.10384.30.camel@breeves.surrey.redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed Content-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 18 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/