]> git.proxmox.com Git - mirror_zfs.git/commit
Fix zmo leak when zfs_sb_create fails
authorChunwei Chen <tuxoko@gmail.com>
Mon, 19 Dec 2016 17:46:29 +0000 (09:46 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 19 Dec 2016 17:46:29 +0000 (09:46 -0800)
commit6c01a4af2b5466fbdceba7304fa8b0dfb0dac839
treebe0fce29c164bb4f75673306796529c66d25d511
parent1528bfdb148b44eaa0522109fee1ab61f4f3214b
Fix zmo leak when zfs_sb_create fails

zfs_sb_create would normally takes ownership of zmo, and it will be freed in
zfs_sb_free. However, when zfs_sb_create fails we need to explicit free it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #5490
Closes #5496
module/zfs/zfs_vfsops.c