diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/request_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/request_sock.c b/net/core/request_sock.c index 1258333ca007..78fd60a46bf2 100644 --- a/net/core/request_sock.c +++ b/net/core/request_sock.c | |||
@@ -21,9 +21,9 @@ | |||
21 | int reqsk_queue_alloc(struct request_sock_queue *queue, | 21 | int reqsk_queue_alloc(struct request_sock_queue *queue, |
22 | const int nr_table_entries) | 22 | const int nr_table_entries) |
23 | { | 23 | { |
24 | const int lopt_size = sizeof(struct tcp_listen_opt) + | 24 | const int lopt_size = sizeof(struct listen_sock) + |
25 | nr_table_entries * sizeof(struct request_sock *); | 25 | nr_table_entries * sizeof(struct request_sock *); |
26 | struct tcp_listen_opt *lopt = kmalloc(lopt_size, GFP_KERNEL); | 26 | struct listen_sock *lopt = kmalloc(lopt_size, GFP_KERNEL); |
27 | 27 | ||
28 | if (lopt == NULL) | 28 | if (lopt == NULL) |
29 | return -ENOMEM; | 29 | return -ENOMEM; |