btrfsctl -A error code fixup
[linux-2.6-block.git] / fs / btrfs / super.c
index 05029656e42e9c871238175ea692ade0cc031b66..77f44494e2292dd719125e1c139704450ec5a229 100644 (file)
@@ -453,7 +453,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
 {
        struct btrfs_ioctl_vol_args *vol;
        struct btrfs_fs_devices *fs_devices;
-       int ret;
+       int ret = 0;
        int len;
 
        vol = kmalloc(sizeof(*vol), GFP_KERNEL);
@@ -470,7 +470,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
        }
 out:
        kfree(vol);
-       return 0;
+       return ret;
 }
 
 static void btrfs_write_super_lockfs(struct super_block *sb)