patch-2.4.25 linux-2.4.25/net/atm/clip.c
Next file: linux-2.4.25/net/atm/common.c
Previous file: linux-2.4.25/net/atm/br2684.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/net/atm/clip.c
- Orig date:
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.24/net/atm/clip.c linux-2.4.25/net/atm/clip.c
@@ -773,6 +773,9 @@
clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id,
clip_tbl.entry_size, 0, SLAB_HWCACHE_ALIGN, NULL, NULL);
+ if (!clip_tbl.kmem_cachep)
+ return -ENOMEM;
+
/* so neigh_ifdown() doesn't complain */
clip_tbl.proxy_timer.data = 0;
clip_tbl.proxy_timer.function = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)