From: Insu Yun Date: Tue, 16 Feb 2016 02:30:33 +0000 (-0500) Subject: tcp: correctly crypto_alloc_hash return check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1eea84b74cd28773c37bf1bda69915f7b9a67efc;p=linux-beck.git tcp: correctly crypto_alloc_hash return check crypto_alloc_hash never returns NULL Signed-off-by: Insu Yun Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 0c36ef4a3f86..483ffdf5aa4d 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2950,7 +2950,7 @@ static void __tcp_alloc_md5sig_pool(void) struct crypto_hash *hash; hash = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC); - if (IS_ERR_OR_NULL(hash)) + if (IS_ERR(hash)) return; per_cpu(tcp_md5sig_pool, cpu).md5_desc.tfm = hash; }