Netdev List
 help / color / mirror / Atom feed
* [PATCH 1/1] Signed-off-by: Jan Wang <bbw725@163.com>
@ 2016-12-11 15:31 Jan Wang
  2016-12-11 20:27 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Wang @ 2016-12-11 15:31 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Jan Wang

[net]: Missing init queue tail

Accept queue tail doesn't initialize NULL.
Though looks like no harm, unify it with reqsk_queue_remove(
it will initialize tail to NULL when empty).

Signed-off-by: Jan Wang <bbw725@163.com>
---
 net/core/request_sock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/core/request_sock.c b/net/core/request_sock.c
index 5d26056..1392bab 100644
--- a/net/core/request_sock.c
+++ b/net/core/request_sock.c
@@ -47,6 +47,7 @@ void reqsk_queue_alloc(struct request_sock_queue *queue)
 	queue->fastopenq.qlen = 0;
 
 	queue->rskq_accept_head = NULL;
+	queue->rskq_accept_tail = NULL;
 }
 
 /*
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-11 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-11 15:31 [PATCH 1/1] Signed-off-by: Jan Wang <bbw725@163.com> Jan Wang
2016-12-11 20:27 ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox