diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 0adf5422fce9..3e3e6130637f 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -4639,6 +4639,11 @@ locked: | |||
4639 | bctl->flags |= BTRFS_BALANCE_TYPE_MASK; | 4639 | bctl->flags |= BTRFS_BALANCE_TYPE_MASK; |
4640 | } | 4640 | } |
4641 | 4641 | ||
4642 | if (bctl->flags & ~(BTRFS_BALANCE_ARGS_MASK | BTRFS_BALANCE_TYPE_MASK)) { | ||
4643 | ret = -EINVAL; | ||
4644 | goto out_bargs; | ||
4645 | } | ||
4646 | |||
4642 | do_balance: | 4647 | do_balance: |
4643 | /* | 4648 | /* |
4644 | * Ownership of bctl and mutually_exclusive_operation_running | 4649 | * Ownership of bctl and mutually_exclusive_operation_running |