diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/request_sock.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 7aed02ce2b65..cff4608179c1 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h | |||
@@ -124,23 +124,7 @@ struct request_sock_queue { | |||
124 | extern int reqsk_queue_alloc(struct request_sock_queue *queue, | 124 | extern int reqsk_queue_alloc(struct request_sock_queue *queue, |
125 | unsigned int nr_table_entries); | 125 | unsigned int nr_table_entries); |
126 | 126 | ||
127 | static inline struct listen_sock *reqsk_queue_yank_listen_sk(struct request_sock_queue *queue) | 127 | extern void __reqsk_queue_destroy(struct request_sock_queue *queue); |
128 | { | ||
129 | struct listen_sock *lopt; | ||
130 | |||
131 | write_lock_bh(&queue->syn_wait_lock); | ||
132 | lopt = queue->listen_opt; | ||
133 | queue->listen_opt = NULL; | ||
134 | write_unlock_bh(&queue->syn_wait_lock); | ||
135 | |||
136 | return lopt; | ||
137 | } | ||
138 | |||
139 | static inline void __reqsk_queue_destroy(struct request_sock_queue *queue) | ||
140 | { | ||
141 | kfree(reqsk_queue_yank_listen_sk(queue)); | ||
142 | } | ||
143 | |||
144 | extern void reqsk_queue_destroy(struct request_sock_queue *queue); | 128 | extern void reqsk_queue_destroy(struct request_sock_queue *queue); |
145 | 129 | ||
146 | static inline struct request_sock * | 130 | static inline struct request_sock * |