diff options
| author | Robert Mustacchi <rm@joyent.com> | 2013-03-01 17:00:10 +0000 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2013-03-01 17:21:42 +0000 |
| commit | 610b770569a84aeb0aa72f423cf0180a8325f163 (patch) | |
| tree | 1433f3aaead2c77954ea888e6f3a694f29b35b1f /usr/src/uts/common/fs/tmpfs/tmp_vnops.c | |
| parent | efa7b29e600b1c35ea3c32fb2d8dc26016fb994b (diff) | |
| download | illumos-joyent-610b770569a84aeb0aa72f423cf0180a8325f163.tar.gz | |
OS-1976 tmp_inactive uses memory after freeing
Diffstat (limited to 'usr/src/uts/common/fs/tmpfs/tmp_vnops.c')
| -rw-r--r-- | usr/src/uts/common/fs/tmpfs/tmp_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/fs/tmpfs/tmp_vnops.c b/usr/src/uts/common/fs/tmpfs/tmp_vnops.c index 06067391c2..91ad4f41dd 100644 --- a/usr/src/uts/common/fs/tmpfs/tmp_vnops.c +++ b/usr/src/uts/common/fs/tmpfs/tmp_vnops.c @@ -25,7 +25,7 @@ */ /* - * Copyright (c) 2012, Joyent, Inc. All rights reserved. + * Copyright (c) 2013, Joyent, Inc. All rights reserved. */ #include <sys/types.h> @@ -1691,7 +1691,7 @@ top: mutex_exit(&tp->tn_tlock); rw_exit(&tp->tn_rwlock); /* If the filesystem was umounted by force, rele the vfs ref */ - if (vp->v_vfsp->vfs_flag & VFS_UNMOUNTED) + if (tm->tm_vfsp->vfs_flag & VFS_UNMOUNTED) VFS_RELE(tm->tm_vfsp); return; } @@ -1754,7 +1754,7 @@ top: tmp_memfree(tp, sizeof (struct tmpnode)); /* If the filesystem was umounted by force, rele the vfs ref */ - if (vp->v_vfsp->vfs_flag & VFS_UNMOUNTED) + if (tm->tm_vfsp->vfs_flag & VFS_UNMOUNTED) VFS_RELE(tm->tm_vfsp); } |
