diff options
-rw-r--r-- | module/zfs/zfs_ioctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index a061978dc..5951bc673 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -3494,11 +3494,13 @@ recursive_unmount(const char *fsname, void *arg) { const char *snapname = arg; char *fullname; + int error; fullname = kmem_asprintf("%s@%s", fsname, snapname); - zfs_unmount_snap(fullname); + error = zfs_unmount_snap(fullname); strfree(fullname); - return (zfs_unmount_snap(fullname)); + + return (error); } /* |