Loading...
--- xnu/xnu-792/iokit/Kernel/IOMapper.cpp
+++ xnu/xnu-517.7.21/iokit/Kernel/IOMapper.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998-2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1998-2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
@@ -212,10 +212,8 @@
ARTTableData *dataP = getARTDataP(artHandle);
int numupls = ((artHandle->getLength() - sizeof(*dataP)) / sizeof(upl_t));
- for (int i = 0; i < numupls; i++) {
- upl_abort(dataP->u[i], 0);
- upl_deallocate(dataP->u[i]);
- }
+ for (int i = 0; i < numupls; i++)
+ kernel_upl_abort(dataP->u[i], 0);
if (dataP->v) {
size = round_page_32(size);