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
configs
hpux
include
kernel
lib
math-emu
mm
oprofile
Kconfig -rw-r--r-- 6.1 KB
Kconfig.debug -rw-r--r-- 1.0 KB
Makefile -rw-r--r-- 3.9 KB
defpalo.conf -rw-r--r-- 789 bytes
install.sh -rw-r--r-- 935 bytes
nm -rw-r--r-- 194 bytes

back to top