From owner-p4-projects@FreeBSD.ORG Thu Jun 27 15:39:48 2013 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id ECDBF520; Thu, 27 Jun 2013 15:39:47 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 937CD51D for ; Thu, 27 Jun 2013 15:39:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [8.8.178.74]) by mx1.freebsd.org (Postfix) with ESMTP id 833CA1E8C for ; Thu, 27 Jun 2013 15:39:47 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.7/8.14.7) with ESMTP id r5RFdlS8032647 for ; Thu, 27 Jun 2013 15:39:47 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.7/8.14.6/Submit) id r5RFdloN032644 for perforce@freebsd.org; Thu, 27 Jun 2013 15:39:47 GMT (envelope-from jhb@freebsd.org) Date: Thu, 27 Jun 2013 15:39:47 GMT Message-Id: <201306271539.r5RFdloN032644@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 230235 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.14 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2013 15:39:48 -0000 http://p4web.freebsd.org/@@230235?ac=10 Change 230235 by jhb@jhb_pipkin on 2013/06/27 15:39:05 Fix an off-by-one error. This now passes allocating a new window range from scratch. Affected files ... .. //depot/projects/pci/sys/dev/pci/pci_pci.c#34 edit Differences ... ==== //depot/projects/pci/sys/dev/pci/pci_pci.c#34 (text+ko) ==== @@ -1064,10 +1064,10 @@ * The first open region for the window at * 0 is 0x400-0x4ff. */ - if (end - count < 0x400) + if (end - count + 1 < 0x400) continue; } else { - if (end - count < base) + if (end - count + 1 < base) continue; }