Fix use after free in zfsctl_snapshot_unmount()

This commit is contained in:
Stian Ellingsen 2016-10-06 19:53:27 +02:00
parent 64c688d716
commit 00b65db711
No known key found for this signature in database
GPG Key ID: B2F4256B71AA1E56
1 changed files with 1 additions and 1 deletions

View File

@ -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);
/*