diff options
author | Linda Knippers <linda.knippers@hp.com> | 2008-06-10 02:17:11 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 15:04:03 (GMT) |
commit | f819d837eea9829ed6c356fb88cdd0a170cbd947 (patch) | |
tree | ef5cd5c8b113ba0cc998a2ff53b002847105fcdf /fs/btrfs/super.c | |
parent | 3b96362cc8d314c935c335d5c3c42eb93c23166b (diff) | |
download | linux-fsl-qoriq-f819d837eea9829ed6c356fb88cdd0a170cbd947.tar.xz |
btrfsctl -A error code fixup
Send the error back to userland if the ioctl fails
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 0502965..77f4449 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, { 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) |