[patch-2.4.0-test8-pre1] buglet in sk_init().

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Aug 30 2000 - 07:17:16 EST


Hi Linus,

The sock slab cache is critical so one ought to panic if it can't be
created, like we do for all other slab caches.

Regards,
Tigran

--- linux/net/core/sock.c Thu Aug 24 08:08:47 2000
+++ work/net/core/sock.c Wed Aug 30 13:13:48 2000
@@ -609,7 +609,9 @@
 {
         sk_cachep = kmem_cache_create("sock", sizeof(struct sock), 0,
                                       SLAB_HWCACHE_ALIGN, 0, 0);
-
+ if (!sk_cachep)
+ panic("Cannot create sock SLAB cache");
+
         if (num_physpages <= 4096) {
                 sysctl_wmem_max = 32767;
                 sysctl_rmem_max = 32767;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:25 EST