diff options
Diffstat (limited to 'fs/btrfs')
-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 7624212ae926..dd8e3448fe8f 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -3698,6 +3698,11 @@ static long btrfs_ioctl_qgroup_create(struct file *file, void __user *arg) | |||
3698 | goto drop_write; | 3698 | goto drop_write; |
3699 | } | 3699 | } |
3700 | 3700 | ||
3701 | if (!sa->qgroupid) { | ||
3702 | ret = -EINVAL; | ||
3703 | goto out; | ||
3704 | } | ||
3705 | |||
3701 | trans = btrfs_join_transaction(root); | 3706 | trans = btrfs_join_transaction(root); |
3702 | if (IS_ERR(trans)) { | 3707 | if (IS_ERR(trans)) { |
3703 | ret = PTR_ERR(trans); | 3708 | ret = PTR_ERR(trans); |