aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStian Ellingsen <[email protected]>2016-10-06 19:53:27 +0200
committerStian Ellingsen <[email protected]>2016-10-08 17:42:52 +0200
commit00b65db711021d60cc4df57f327d1443ea54a9e1 (patch)
tree803bc5ba326ce64045c3c63aafbe3036f107f890
parent64c688d7161daac0a799b11b40cb791f6fd264db (diff)
Fix use after free in zfsctl_snapshot_unmount()
-rw-r--r--module/zfs/zfs_ctldir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_ctldir.c b/module/zfs/zfs_ctldir.c
index 459f01c98..c4c5ec522 100644
--- a/module/zfs/zfs_ctldir.c
+++ b/module/zfs/zfs_ctldir.c
@@ -1032,10 +1032,10 @@ zfsctl_snapshot_unmount(char *snapname, int flags)
argv[2] = kmem_asprintf(SET_UNMOUNT_CMD,
flags & MNT_FORCE ? "-f " : "", se->se_path);
- zfsctl_snapshot_rele(se);
dprintf("unmount; path=%s\n", se->se_path);
error = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
strfree(argv[2]);
+ zfsctl_snapshot_rele(se);
/*