aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sctp/socket.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 83a76ba9d7b3..f3c95f9bd413 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -5227,7 +5227,12 @@ int sctp_inet_listen(struct socket *sock, int backlog)
5227 /* Allocate HMAC for generating cookie. */ 5227 /* Allocate HMAC for generating cookie. */
5228 if (sctp_hmac_alg) { 5228 if (sctp_hmac_alg) {
5229 tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC); 5229 tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC);
5230 if (!tfm) { 5230 if (IS_ERR(tfm)) {
5231 if (net_ratelimit()) {
5232 printk(KERN_INFO
5233 "SCTP: failed to load transform for %s: %ld\n",
5234 sctp_hmac_alg, PTR_ERR(tfm));
5235 }
5231 err = -ENOSYS; 5236 err = -ENOSYS;
5232 goto out; 5237 goto out;
5233 } 5238 }