diff options
Diffstat (limited to 'libdiskfs/protid-rele.c')
-rw-r--r-- | libdiskfs/protid-rele.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libdiskfs/protid-rele.c b/libdiskfs/protid-rele.c index 10ff6890..be74056a 100644 --- a/libdiskfs/protid-rele.c +++ b/libdiskfs/protid-rele.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1999 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -17,7 +17,7 @@ #include "priv.h" -/* Called when a protid CRED has no more references. (Because references\ +/* Called when a protid CRED has no more references. (Because references to protids are maintained by the port management library, this is installed in the clean routines list.) The ports library will free the structure for us. */ @@ -30,8 +30,7 @@ diskfs_protid_rele (void *arg) if (cred->shared_object) mach_port_deallocate (mach_task_self (), cred->shared_object); if (cred->mapped) - vm_deallocate (mach_task_self (), (vm_address_t) cred->mapped, - vm_page_size); + munmap (cred->mapped, vm_page_size); diskfs_release_peropen (cred->po); } |