diff options
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 11d93377ba5e..5dffbc493008 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -1438,7 +1438,7 @@ static __init int sctp_init(void) | |||
1438 | /* Allocate and initialize the endpoint hash table. */ | 1438 | /* Allocate and initialize the endpoint hash table. */ |
1439 | sctp_ep_hashsize = 64; | 1439 | sctp_ep_hashsize = 64; |
1440 | sctp_ep_hashtable = | 1440 | sctp_ep_hashtable = |
1441 | kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); | 1441 | kmalloc_array(64, sizeof(struct sctp_hashbucket), GFP_KERNEL); |
1442 | if (!sctp_ep_hashtable) { | 1442 | if (!sctp_ep_hashtable) { |
1443 | pr_err("Failed endpoint_hash alloc\n"); | 1443 | pr_err("Failed endpoint_hash alloc\n"); |
1444 | status = -ENOMEM; | 1444 | status = -ENOMEM; |