btrfs: fix 64bit compat send ioctl arguments not initializing version member
[platform/kernel/linux-starfive.git] / fs / btrfs / ioctl.c
index 4cb4065..0b12071 100644 (file)
@@ -4351,6 +4351,7 @@ static int _btrfs_ioctl_send(struct inode *inode, void __user *argp, bool compat
                arg->clone_sources = compat_ptr(args32.clone_sources);
                arg->parent_root = args32.parent_root;
                arg->flags = args32.flags;
+               arg->version = args32.version;
                memcpy(arg->reserved, args32.reserved,
                       sizeof(args32.reserved));
 #else