From: Jesper Juhl Date: Wed, 16 Feb 2011 02:04:09 +0000 (+1100) Subject: crypto: aesni-intel - Fix remaining leak in rfc4106_set_hash_key X-Git-Tag: v2.6.39-rc1~487^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc9044e2db8c13746cd886d6276028b27ed5c78e;p=pandora-kernel.git crypto: aesni-intel - Fix remaining leak in rfc4106_set_hash_key Fix up previous patch that failed to properly fix mem leak in rfc4106_set_hash_subkey(). This add-on patch; fixes the leak. moves kfree() out of the error path, returns -ENOMEM rather than -EINVAL when ablkcipher_request_alloc() fails. Signed-off-by: Jesper Juhl Signed-off-by: Herbert Xu --- Reading git-diff-tree failed