From 7c9b007bbc7065cc5c531b22f0eb9d75aba9d2ee Mon Sep 17 00:00:00 2001 From: ad Date: Sat, 8 Dec 2007 15:12:15 +0000 Subject: [PATCH] Destroy ovm_hashlock before freeing. --- sys/miscfs/overlay/overlay_vfsops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/miscfs/overlay/overlay_vfsops.c b/sys/miscfs/overlay/overlay_vfsops.c index 573b9070ebe3..cc4b8650a2f9 100644 --- a/sys/miscfs/overlay/overlay_vfsops.c +++ b/sys/miscfs/overlay/overlay_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: overlay_vfsops.c,v 1.45 2007/11/26 19:02:15 pooka Exp $ */ +/* $NetBSD: overlay_vfsops.c,v 1.46 2007/12/08 15:12:15 ad Exp $ */ /* * Copyright (c) 1999, 2000 National Aeronautics & Space Administration @@ -74,7 +74,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.45 2007/11/26 19:02:15 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.46 2007/12/08 15:12:15 ad Exp $"); #include #include @@ -230,6 +230,7 @@ ov_unmount(struct mount *mp, int mntflags) /* * Finally, throw away the overlay_mount structure */ + mutex_destroy(&((struct overlay_mount *)mp->mnt_data)->ovm_hashlock); free(mp->mnt_data, M_UFSMNT); /* XXX */ mp->mnt_data = 0; return 0;