diff options
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r-- | net/tipc/net.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index f6303d79f7f5..b5b337f5516d 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c | |||
@@ -114,8 +114,7 @@ atomic_t tipc_num_links; | |||
114 | 114 | ||
115 | static int net_start(void) | 115 | static int net_start(void) |
116 | { | 116 | { |
117 | tipc_nodes = kcalloc(tipc_max_nodes + 1, | 117 | tipc_nodes = kcalloc(4096, sizeof(*tipc_nodes), GFP_ATOMIC); |
118 | sizeof(*tipc_nodes), GFP_ATOMIC); | ||
119 | tipc_highest_node = 0; | 118 | tipc_highest_node = 0; |
120 | atomic_set(&tipc_num_links, 0); | 119 | atomic_set(&tipc_num_links, 0); |
121 | 120 | ||