Skip to content

Commit 1eea84b

Browse files
insuyundavem330
authored andcommitted
tcp: correctly crypto_alloc_hash return check
crypto_alloc_hash never returns NULL Signed-off-by: Insu Yun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 73dcb55 commit 1eea84b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2950,7 +2950,7 @@ static void __tcp_alloc_md5sig_pool(void)
29502950
struct crypto_hash *hash;
29512951

29522952
hash = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC);
2953-
if (IS_ERR_OR_NULL(hash))
2953+
if (IS_ERR(hash))
29542954
return;
29552955
per_cpu(tcp_md5sig_pool, cpu).md5_desc.tfm = hash;
29562956
}

0 commit comments

Comments
 (0)