From: Christian Engelmayer Date: Mon, 21 Apr 2014 18:46:40 +0000 (+0200) Subject: crypto: tcrypt - Fix potential leak in test_aead_speed() if crypto_alloc_aead() fails X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~2^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2ea6ed6a631e24d315b5f2bd468e6f4c7ff2e48;p=pandora-kernel.git crypto: tcrypt - Fix potential leak in test_aead_speed() if crypto_alloc_aead() fails Fix a potential memory leak in the error handling of test_aead_speed(). In case crypto_alloc_aead() fails, the function returns without going through the centralized cleanup path. Reported by Coverity - CID 1163870. Signed-off-by: Christian Engelmayer Reviewed-by: Marek Vasut Acked-by: Tim Chen Signed-off-by: Herbert Xu --- Reading git-diff-tree failed