Btrfs: don't leak ioctl args in btrfs_ioctl_dev_replace
authorIlya Dryomov <idryomov@gmail.com>
Thu, 10 Oct 2013 17:39:28 +0000 (20:39 +0300)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:00:37 +0000 (22:00 -0500)
commitadfa97cbdfe376b02bb3e1ea3166958fec35ca6f
tree4f22a72f87288cbd0299ea0da0b51b5f796cb666
parentf747cab7b75ba298df3ac234de9f1655957786cc
Btrfs: don't leak ioctl args in btrfs_ioctl_dev_replace

struct btrfs_ioctl_dev_replace_args memory is leaked if replace is
requested on a read-only filesystem.  Fix it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c