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 6bf0a9971888..67f73d3a1356 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1438,7 +1438,7 @@ static __init int sctp_init(void)  	/* Allocate and initialize the endpoint hash table.  */  	sctp_ep_hashsize = 64;  	sctp_ep_hashtable = -		kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); +		kmalloc_array(64, sizeof(struct sctp_hashbucket), GFP_KERNEL);  	if (!sctp_ep_hashtable) {  		pr_err("Failed endpoint_hash alloc\n");  		status = -ENOMEM;  |