|
@@ -1403,7 +1403,7 @@ SCTP_STATIC __init int sctp_init(void)
|
|
|
|
|
|
/* Allocate and initialize the endpoint hash table. */
|
|
/* Allocate and initialize the endpoint hash table. */
|
|
sctp_ep_hashsize = 64;
|
|
sctp_ep_hashsize = 64;
|
|
- sctp_ep_hashtable = (struct sctp_hashbucket *)
|
|
|
|
|
|
+ sctp_ep_hashtable =
|
|
kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL);
|
|
kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL);
|
|
if (!sctp_ep_hashtable) {
|
|
if (!sctp_ep_hashtable) {
|
|
pr_err("Failed endpoint_hash alloc\n");
|
|
pr_err("Failed endpoint_hash alloc\n");
|