Skip to content

Commit

Permalink
Fix use after free in zfsctl_snapshot_unmount()
Browse files Browse the repository at this point in the history
  • Loading branch information
stiell committed Oct 8, 2016
1 parent 64c688d commit 00b65db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


/*
Expand Down

0 comments on commit 00b65db

Please sign in to comment.