Author: baggins                      Date: Thu Dec  4 09:44:28 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- if NETNS is enabled then twsk_net() actually accesses its parameter
  which may be NULL here. Don't let it.

---- Files affected:
SOURCES:
   kernel-netns-inet6-tw.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/kernel-netns-inet6-tw.patch
diff -u /dev/null SOURCES/kernel-netns-inet6-tw.patch:1.1
--- /dev/null   Thu Dec  4 10:44:29 2008
+++ SOURCES/kernel-netns-inet6-tw.patch Thu Dec  4 10:44:23 2008
@@ -0,0 +1,12 @@
+--- linux-2.6.27.7/net/ipv6/inet6_hashtables.c~        2008-12-03 
19:33:29.502811014 +0100
++++ linux-2.6.27.7/net/ipv6/inet6_hashtables.c 2008-12-04 08:48:20.898136465 
+0100
+@@ -214,7 +214,8 @@
+ 
+       if (twp != NULL) {
+               *twp = tw;
+-              NET_INC_STATS_BH(twsk_net(tw), LINUX_MIB_TIMEWAITRECYCLED);
++              if (tw != NULL)
++                      NET_INC_STATS_BH(twsk_net(tw), 
LINUX_MIB_TIMEWAITRECYCLED);
+       } else if (tw != NULL) {
+               /* Silly. Should hash-dance instead... */
+               inet_twsk_deschedule(tw, death_row);
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to