From: Daniel J Blueman Date: Wed, 9 Mar 2011 16:46:42 +0000 (+0000) Subject: btrfs: fix dip leak X-Git-Tag: v2.6.38~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4966b7770349deb05e3dd2bd2c65d2d044abbbb;p=pandora-kernel.git btrfs: fix dip leak 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 Acked-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed