From owner-svn-src-user@freebsd.org Tue Nov 21 21:16:49 2017 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD1AAD94F79 for ; Tue, 21 Nov 2017 21:16:49 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97D0E8066F; Tue, 21 Nov 2017 21:16:49 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vALLGmhw081956; Tue, 21 Nov 2017 21:16:48 GMT (envelope-from jeff@FreeBSD.org) Received: (from jeff@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vALLGmV3081955; Tue, 21 Nov 2017 21:16:48 GMT (envelope-from jeff@FreeBSD.org) Message-Id: <201711212116.vALLGmV3081955@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jeff set sender to jeff@FreeBSD.org using -f From: Jeff Roberson Date: Tue, 21 Nov 2017 21:16:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r326076 - user/jeff/numa/sys/vm X-SVN-Group: user X-SVN-Commit-Author: jeff X-SVN-Commit-Paths: user/jeff/numa/sys/vm X-SVN-Commit-Revision: 326076 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 21:16:49 -0000 Author: jeff Date: Tue Nov 21 21:16:48 2017 New Revision: 326076 URL: https://svnweb.freebsd.org/changeset/base/326076 Log: Update for r325992 Just return if the caller specifies a zero size. This can happen when kmem_back fails to allocate the first page. Modified: user/jeff/numa/sys/vm/vm_kern.c Modified: user/jeff/numa/sys/vm/vm_kern.c ============================================================================== --- user/jeff/numa/sys/vm/vm_kern.c Tue Nov 21 20:46:21 2017 (r326075) +++ user/jeff/numa/sys/vm/vm_kern.c Tue Nov 21 21:16:48 2017 (r326076) @@ -528,6 +528,8 @@ _kmem_unback(vm_object_t object, vm_offset_t addr, vm_ KASSERT(object == kernel_object, ("kmem_unback: only supports kernel object.")); + if (size == 0) + return 0; pmap_remove(kernel_pmap, addr, addr + size); offset = addr - VM_MIN_KERNEL_ADDRESS; end = offset + size;