* [janitor] neighbour: handle kmem_cache_create() failure
@ 2004-02-23 21:34 Randy.Dunlap
2004-02-23 23:11 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2004-02-23 21:34 UTC (permalink / raw)
To: netdev; +Cc: davem
hi,
Please apply to 2.6.3-current.
--
~Randy
From: <WHarms@bfs.de>(Walter Harms)
linux-263-kj1-rddunlap/net/core/neighbour.c | 4 ++++
1 files changed, 4 insertions(+)
diff -puN net/core/neighbour.c~net_neighbour_kmemcc net/core/neighbour.c
--- linux-263-kj1/net/core/neighbour.c~net_neighbour_kmemcc 2004-02-18 14:45:21.000000000 -0800
+++ linux-263-kj1-rddunlap/net/core/neighbour.c 2004-02-18 14:45:21.000000000 -0800
@@ -1168,6 +1168,10 @@ void neigh_table_init(struct neigh_table
15) & ~15,
0, SLAB_HWCACHE_ALIGN,
NULL, NULL);
+
+ if (!tbl->kmem_cachep)
+ panic("cannot create neighbour cache");
+
tbl->lock = RW_LOCK_UNLOCKED;
init_timer(&tbl->gc_timer);
tbl->gc_timer.data = (unsigned long)tbl;
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [janitor] neighbour: handle kmem_cache_create() failure
2004-02-23 21:34 [janitor] neighbour: handle kmem_cache_create() failure Randy.Dunlap
@ 2004-02-23 23:11 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-02-23 23:11 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: netdev
On Mon, 23 Feb 2004 13:34:02 -0800
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
> Please apply to 2.6.3-current.
...
> From: <WHarms@bfs.de>(Walter Harms)
...
> linux-263-kj1-rddunlap/net/core/neighbour.c | 4 ++++
> 1 files changed, 4 insertions(+)
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-23 23:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-23 21:34 [janitor] neighbour: handle kmem_cache_create() failure Randy.Dunlap
2004-02-23 23:11 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).