diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 62a3a778d37d..1cabc1951b0e 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1831,6 +1831,8 @@ int btrfs_ioctl(struct inode *inode, struct file *filp, unsigned int | |||
1831 | namelen = strlen(vol_args.name); | 1831 | namelen = strlen(vol_args.name); |
1832 | if (namelen > BTRFS_VOL_NAME_MAX) | 1832 | if (namelen > BTRFS_VOL_NAME_MAX) |
1833 | return -EINVAL; | 1833 | return -EINVAL; |
1834 | if (strchr(vol_args.name, '/')) | ||
1835 | return -EINVAL; | ||
1834 | path = btrfs_alloc_path(); | 1836 | path = btrfs_alloc_path(); |
1835 | if (!path) | 1837 | if (!path) |
1836 | return -ENOMEM; | 1838 | return -ENOMEM; |