From: Artem B. Bityuckiy Date: Sat, 16 Apr 2005 22:23:58 +0000 (-0700) Subject: [PATCH] crypto: call zlib end functions on deflate exit path X-Git-Tag: v2.6.12-rc3~238 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ffb7146f0aa9c0070cda3d8701b0a89e34913d1;p=pandora-kernel.git [PATCH] crypto: call zlib end functions on deflate exit path In the deflate_[compress|uncompress|pcompress] functions we call the zlib_[in|de]flateReset function at the beginning. This is OK. But when we unload the deflate module we don't call zlib_[in|de]flateEnd to free all the zlib internal data. It looks like a bug for me. Please, consider the attached patch. Signed-off-by: Artem B. Bityuckiy Signed-off-by: Herbert Xu Cc: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed