Skip to content

Commit

Permalink
Fix the "start connection failed" bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceS17 authored and akshayknarayan committed Nov 11, 2021
1 parent 7d0650e commit 4dab1ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tcp_ccp.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,9 @@ static int __init tcp_ccp_register(void) {
}

kernel_datapath->max_connections = MAX_ACTIVE_FLOWS;
// initializes ccp_active_connections to zeros to support the availability check using index == 0 in ccp_connection_start()
kernel_datapath->ccp_active_connections =
(struct ccp_connection *) kmalloc(sizeof(struct ccp_connection) * MAX_ACTIVE_FLOWS, GFP_KERNEL);
(struct ccp_connection *) kzalloc(sizeof(struct ccp_connection) * MAX_ACTIVE_FLOWS, GFP_KERNEL);
if(!kernel_datapath->ccp_active_connections) {
pr_info("[ccp] could not allocate ccp_active_connections\n");
return -5;
Expand Down

0 comments on commit 4dab1ed

Please sign in to comment.