Skip to content

Commit

Permalink
btrfsctl -A error code fixup
Browse files Browse the repository at this point in the history
Send the error back to userland if the ioctl fails

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Linda Knippers authored and Chris Mason committed Sep 25, 2008
1 parent 3b96362 commit f819d83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit f819d83

Please sign in to comment.