commit | 683be16eb6e19a35aca2473668652259ed074094 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Sat Mar 20 11:24:48 2010 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Mar 30 21:19:09 2010 -0400 |
tree | e6ed753b392a576999140ab9758db9c58dc60926 | |
parent | f3eae7e8a5ed124bbc781e18ea10c21856017322 [diff] [blame] |
Btrfs: dereferencing freed memory The original code dereferenced range on the next line. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 5c9f8b3..874d36e 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c
@@ -1374,6 +1374,7 @@ sizeof(*range))) { ret = -EFAULT; kfree(range); + goto out; } /* compression requires us to start the IO */ if ((range->flags & BTRFS_DEFRAG_RANGE_COMPRESS)) {