We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c0150 commit 5cc8815Copy full SHA for 5cc8815
net/ipv4/tcp_ao.c
@@ -1533,10 +1533,6 @@ static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
1533
goto err_free_pool;
1534
1535
tfm = crypto_ahash_reqtfm(hp.req);
1536
- if (crypto_ahash_alignmask(tfm) > TCP_AO_KEY_ALIGN) {
1537
- err = -EOPNOTSUPP;
1538
- goto err_pool_end;
1539
- }
1540
digest_size = crypto_ahash_digestsize(tfm);
1541
tcp_sigpool_end(&hp);
1542
@@ -1551,8 +1547,6 @@ static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
1551
1547
key->digest_size = digest_size;
1552
1548
return key;
1553
1549
1554
-err_pool_end:
1555
- tcp_sigpool_end(&hp);
1556
1550
err_free_pool:
1557
tcp_sigpool_release(pool_id);
1558
return ERR_PTR(err);
0 commit comments