https://github.com/torvalds/linux
Revision b4966b7770349deb05e3dd2bd2c65d2d044abbbb authored by Daniel J Blueman on 09 March 2011, 16:46:42 UTC, committed by Chris Mason on 10 March 2011, 16:21:49 UTC
The btrfs DIO code leaks dip structs when dip->csums allocation
fails; bio->bi_end_io isn't set at the point where the free_ordered
branch is consequently taken, thus bio_endio doesn't call the function
which would free it in the normal case. Fix.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Acked-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
1 parent ea8efc7
History
Tip revision: b4966b7770349deb05e3dd2bd2c65d2d044abbbb authored by Daniel J Blueman on 09 March 2011, 16:46:42 UTC
btrfs: fix dip leak
Tip revision: b4966b7
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 4.8 KB
Makefile -rw-r--r-- 2.2 KB
gen_init_cpio.c -rw-r--r-- 12.3 KB
initramfs_data.S -rw-r--r-- 1021 bytes
initramfs_data.bz2.S -rw-r--r-- 1.0 KB
initramfs_data.gz.S -rw-r--r-- 1023 bytes
initramfs_data.lzma.S -rw-r--r-- 1.0 KB
initramfs_data.lzo.S -rw-r--r-- 1.0 KB

back to top