From: Neil Brown Date: Tue, 16 Oct 2007 11:48:46 +0000 (+0200) Subject: Fix memory leak in dm-crypt X-Git-Tag: v2.6.24-rc1~833^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=644bd2f048972d75eb1979b1fdca257d528ce687;p=pandora-kernel.git Fix memory leak in dm-crypt dm-crypt used the ->bi_size member in the bio endio handling to free the appropriate pages, but it frees all of it from both call paths. With the ->bi_end_io() changes, ->bi_size was always 0 since we don't do partial completes. This caused dm-crypt to leak memory. Fix this by removing the size argument from crypt_free_buffer_pages(). Signed-off-by: Neil Brown Signed-off-by: Jens Axboe --- Reading git-diff-tree failed