tcp: correctly crypto_alloc_hash return check
Subsystems (3)
PATCH 1/1 tcp: correctly crypto_alloc_hash return check
crypto_alloc_hash never returns NULL
Signed-off-by Insu Yun <[email protected]>
--- net/ipv4/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/tcp.c +1 -1
@@ -2946,7 +2946,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; }
Signature · 1 line
1.9.1
From: Insu Yun <[email protected]>
Date: Mon, 15 Feb 2016 21:30:33 -0500
Quoted 3 lines
crypto_alloc_hashnever returns NULLSigned-off-by Insu Yun <[email protected]>
Applied, thanks.