projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3eae7e
)
Btrfs: dereferencing freed memory
author
Dan Carpenter
<error27@gmail.com>
Sat, 20 Mar 2010 11:24:48 +0000
(11:24 +0000)
committer
Chris Mason
<chris.mason@oracle.com>
Wed, 31 Mar 2010 01:19:09 +0000
(21:19 -0400)
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>
fs/btrfs/ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index 5c9f8b30608c8305e75f4c1a95148a322ead409b..874d36e5f167eb879207fe78b56116f1402868b0 100644
(file)
--- a/
fs/btrfs/ioctl.c
+++ b/
fs/btrfs/ioctl.c
@@
-1374,6
+1374,7
@@
static int btrfs_ioctl_defrag(struct file *file, void __user *argp)
sizeof(*range))) {
ret = -EFAULT;
kfree(range);
+ goto out;
}
/* compression requires us to start the IO */
if ((range->flags & BTRFS_DEFRAG_RANGE_COMPRESS)) {