]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6dc99f2372e51a36930ffccba248afb6c28d44d2
tree4f22a72f87288cbd0299ea0da0b51b5f796cb666
parente53cedf53f01c0d0d80f7cc75144bf3d40374612
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