OpenVZ Forum


Home » Mailing lists » Devel » [patch 1/1] net namespace: fix bad keepalive timer refcounting
[patch 1/1] net namespace: fix bad keepalive timer refcounting [message #17406] Mon, 29 January 2007 16:22
Daniel Lezcano is currently offline  Daniel Lezcano
Messages: 417
Registered: June 2006
Senior Member
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Probably a typo, the orig_net_ns is released each time the keepalive 
timer expires.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

---
  net/ipv4/tcp_timer.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Index: 2.6.20-rc4-mm1/net/ipv4/tcp_timer.c
===================================================================
--- 2.6.20-rc4-mm1.orig/net/ipv4/tcp_timer.c
+++ 2.6.20-rc4-mm1/net/ipv4/tcp_timer.c
@@ -529,5 +529,5 @@
  out:
  	bh_unlock_sock(sk);
  	sock_put(sk);
-	put_net_ns(orig_net_ns);
+	pop_net_ns(orig_net_ns);
  }

-- 
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: [PATCH 3/3] lutimesat: actual syscall and wire-up on i386
Next Topic: [RFC][PATCH 1/2] pipe: header file and removal of dupfd()'s static
Goto Forum:
  


Current Time: Fri Jul 25 08:52:55 GMT 2025

Total time taken to generate the page: 0.20354 seconds