diff options
Diffstat (limited to 'net/sctp/protocol.c')
| -rw-r--r-- | net/sctp/protocol.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 6bf0a9971888..5dffbc493008 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1016,7 +1016,7 @@ static const struct proto_ops inet_seqpacket_ops = {  	.socketpair	   = sock_no_socketpair,  	.accept		   = inet_accept,  	.getname	   = inet_getname,	/* Semantics are different.  */ -	.poll		   = sctp_poll, +	.poll_mask	   = sctp_poll_mask,  	.ioctl		   = inet_ioctl,  	.listen		   = sctp_inet_listen,  	.shutdown	   = inet_shutdown,	/* Looks harmless.  */ @@ -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;  | 
