]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_ioctl.c
Fix incorrect usage of strdup() in zfs_unmount_snap()
authorRichard Yao <ryao@gentoo.org>
Tue, 8 Oct 2013 21:59:42 +0000 (17:59 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Oct 2013 22:06:18 +0000 (15:06 -0700)
commit20f04f08aa5032f1e958ba38654d9ed833b6b636
treecf988efa424aa502ceab158ed0a7f46a53233253
parent8c8417933f11d2bda734056f34f5d7c982acbcec
Fix incorrect usage of strdup() in zfs_unmount_snap()

Modifying the length of a string returned by strdup() is incorrect
because strfree() is allowed to use strlen() to determine which slab
cache was used to do the allocation.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1775
module/zfs/zfs_ioctl.c