aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index cbc9d0d2c12d..645fc81e2a94 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -2237,6 +2237,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
2237 vol = memdup_user((void __user *)arg, sizeof(*vol)); 2237 vol = memdup_user((void __user *)arg, sizeof(*vol));
2238 if (IS_ERR(vol)) 2238 if (IS_ERR(vol))
2239 return PTR_ERR(vol); 2239 return PTR_ERR(vol);
2240 vol->name[BTRFS_PATH_NAME_MAX] = '\0';
2240 2241
2241 switch (cmd) { 2242 switch (cmd) {
2242 case BTRFS_IOC_SCAN_DEV: 2243 case BTRFS_IOC_SCAN_DEV: