aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 05029656e42e..77f44494e229 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -453,7 +453,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
453{ 453{
454 struct btrfs_ioctl_vol_args *vol; 454 struct btrfs_ioctl_vol_args *vol;
455 struct btrfs_fs_devices *fs_devices; 455 struct btrfs_fs_devices *fs_devices;
456 int ret; 456 int ret = 0;
457 int len; 457 int len;
458 458
459 vol = kmalloc(sizeof(*vol), GFP_KERNEL); 459 vol = kmalloc(sizeof(*vol), GFP_KERNEL);
@@ -470,7 +470,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
470 } 470 }
471out: 471out:
472 kfree(vol); 472 kfree(vol);
473 return 0; 473 return ret;
474} 474}
475 475
476static void btrfs_write_super_lockfs(struct super_block *sb) 476static void btrfs_write_super_lockfs(struct super_block *sb)