svn commit: r297022 - stable/9/sys/cddl/compat/opensolaris/kern

Alexander Motin mav at FreeBSD.org
Fri Mar 18 13:32:38 UTC 2016


Author: mav
Date: Fri Mar 18 13:32:37 2016
New Revision: 297022
URL: https://svnweb.freebsd.org/changeset/base/297022

Log:
  MFC r296919: Fix small memory leak on attempt to access deleted snapshot.

Modified:
  stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
==============================================================================
--- stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c	Fri Mar 18 13:32:00 2016	(r297021)
+++ stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c	Fri Mar 18 13:32:37 2016	(r297022)
@@ -196,6 +196,7 @@ mount_snapshot(kthread_t *td, vnode_t **
 		VI_UNLOCK(vp);
 		vrele(vp);
 		vfs_unbusy(mp);
+		vfs_freeopts(mp->mnt_optnew);
 		vfs_mount_destroy(mp);
 		*vpp = NULL;
 		return (error);


More information about the svn-src-stable-9 mailing list