Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eea84b7 authored by Insu Yun's avatar Insu Yun Committed by David S. Miller
Browse files

tcp: correctly crypto_alloc_hash return check



crypto_alloc_hash never returns NULL

Signed-off-by: default avatarInsu Yun <wuninsu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 73dcb556
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}