diff options
| author | Chas Williams <chas@cmf.nrl.navy.mil> | 2004-02-04 07:20:26 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-02-04 07:20:26 -0800 |
| commit | fc850609be4fbacee77b6765aee9e796ded830c2 (patch) | |
| tree | 969666b887f2421e38097a438537b4fb1e2582e5 | |
| parent | bfa0dfd90ab5fecbffbdf5ecb40b3510ebc88328 (diff) | |
[ATM]: [clip] check return code from kmem_cache_create (by "Randy.Dunlap" <rddunlap@osdl.org>)
| -rw-r--r-- | net/atm/clip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c index 4bbc6fccbc56..811e2f2bc444 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c @@ -1021,6 +1021,9 @@ static int __init atm_clip_init(void) 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; |
