aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_ctldir.c
diff options
context:
space:
mode:
authorStian Ellingsen <[email protected]>2016-10-06 19:53:27 +0200
committerBrian Behlendorf <[email protected]>2017-02-03 10:24:12 -0800
commitd71db895a16fceae6f7f7323da3e4525e8d1369a (patch)
tree27eb419edcd0f1485e112591440f10da87236443 /module/zfs/zfs_ctldir.c
parent42dae6d7a6636d97917a102b0b63edebf6741a9a (diff)
Fix use after free in zfsctl_snapshot_unmount()
Diffstat (limited to 'module/zfs/zfs_ctldir.c')
-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 05d841d4b..1b7c5af50 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);
/*