summaryrefslogtreecommitdiff
path: root/sys/isofs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-09-24 18:38:24 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-09-24 18:38:24 +0000
commit01e37f777713137e791c302324d7f8fecf84a28b (patch)
tree6f05fc1ddb891b43b75a16de4afecfb7ac736c32 /sys/isofs
parentd3bb61a47f64ece4fd39a052e1cc006d51b31149 (diff)
use hashfree in fs code. from Mathieu -
ok guenther
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/udf/udf_vfsops.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c
index d7ecaf4d8d9..ef343803aee 100644
--- a/sys/isofs/udf/udf_vfsops.c
+++ b/sys/isofs/udf/udf_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vfsops.c,v 1.56 2016/09/15 02:00:18 dlg Exp $ */
+/* $OpenBSD: udf_vfsops.c,v 1.57 2016/09/24 18:38:23 tedu Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -430,8 +430,7 @@ udf_mountfs(struct vnode *devvp, struct mount *mp, uint32_t lb, struct proc *p)
return (0);
bail:
- if (ump->um_hashtbl != NULL)
- free(ump->um_hashtbl, M_UDFMOUNT, 0);
+ hashfree(ump->um_hashtbl, UDF_HASHTBLSIZE, M_UDFMOUNT);
if (ump != NULL) {
free(ump, M_UDFMOUNT, 0);
@@ -480,9 +479,7 @@ udf_unmount(struct mount *mp, int mntflags, struct proc *p)
if (ump->um_stbl != NULL)
free(ump->um_stbl, M_UDFMOUNT, 0);
- if (ump->um_hashtbl != NULL)
- free(ump->um_hashtbl, M_UDFMOUNT, 0);
-
+ hashfree(ump->um_hashtbl, UDF_HASHTBLSIZE, M_UDFMOUNT);
free(ump, M_UDFMOUNT, 0);
mp->mnt_data = NULL;