]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/shiftfs.c
UBUNTU: SAUCE: shiftfs: pass correct point down
[mirror_ubuntu-jammy-kernel.git] / fs / shiftfs.c
index addaa6e21e5771673589b87ded6df8984bc55dd5..9006201c243db94b8eb2e766e090f1bb3e906dd3 100644 (file)
@@ -1529,7 +1529,7 @@ static bool in_ioctl_whitelist(int flag, unsigned long arg)
        case BTRFS_IOC_SUBVOL_GETFLAGS:
                return true;
        case BTRFS_IOC_SUBVOL_SETFLAGS:
-               if (copy_from_user(&flags, arg, sizeof(flags)))
+               if (copy_from_user(&flags, argp, sizeof(flags)))
                        return false;
 
                if (flags & ~BTRFS_SUBVOL_RDONLY)