diff options
author | Insu Yun <wuninsu@gmail.com> | 2016-02-15 21:30:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-17 22:23:04 -0500 |
commit | 1eea84b74cd28773c37bf1bda69915f7b9a67efc (patch) | |
tree | 7a5590df36b8ca3e97fbe4cd88f55b488aafc1c0 /net/ipv4/tcp.c | |
parent | 73dcb556538a4192222c3a919a51e1701bae553b (diff) |
tcp: correctly crypto_alloc_hash return check
crypto_alloc_hash never returns NULL
Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
2950 | struct crypto_hash *hash; | 2950 | struct crypto_hash *hash; |
2951 | 2951 | ||
2952 | hash = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC); | 2952 | hash = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC); |
2953 | if (IS_ERR_OR_NULL(hash)) | 2953 | if (IS_ERR(hash)) |
2954 | return; | 2954 | return; |
2955 | per_cpu(tcp_md5sig_pool, cpu).md5_desc.tfm = hash; | 2955 | per_cpu(tcp_md5sig_pool, cpu).md5_desc.tfm = hash; |
2956 | } | 2956 | } |