[PATCH] Catch kmalloc failure in kmem_cache_init() (was: [QUESTION] check for mem in slab)

2007-04-02 Thread Johannes Weiner
Hi, > On 3/30/07, Heiko Carstens <[EMAIL PROTECTED]> wrote: > >> in file mm/slab.c and routine kmem_cache_init() I found there > >> is no checking for allocated memory on line: > >> > >> /* 4) Replace the bootstrap head arrays */ > >> { > >> struct array_cache *ptr; > >>

Re: [QUESTION] check for mem in slab

2007-03-30 Thread Cyrill Gorcunov
[Pekka Enberg - Fri, Mar 30, 2007 at 02:55:26PM +0300] | On 3/30/07, Heiko Carstens <[EMAIL PROTECTED]> wrote: | >> in file mm/slab.c and routine kmem_cache_init() I found there | >> is no checking for allocated memory on line: | >> | >> /* 4) Replace the bootstrap head arrays */ | >> {

Re: [QUESTION] check for mem in slab

2007-03-30 Thread Pekka Enberg
On 3/30/07, Heiko Carstens <[EMAIL PROTECTED]> wrote: > in file mm/slab.c and routine kmem_cache_init() I found there > is no checking for allocated memory on line: > > /* 4) Replace the bootstrap head arrays */ > { > struct array_cache *ptr; > > ptr = kmal

Re: [QUESTION] check for mem in slab

2007-03-29 Thread Heiko Carstens
> in file mm/slab.c and routine kmem_cache_init() I found there > is no checking for allocated memory on line: > > /* 4) Replace the bootstrap head arrays */ > { > struct array_cache *ptr; > > ptr = kmalloc(sizeof(struct arraycache_init), GFP_KERNEL); > >

[QUESTION] check for mem in slab

2007-03-29 Thread Cyrill Gorcunov
Hi list, in file mm/slab.c and routine kmem_cache_init() I found there is no checking for allocated memory on line: /* 4) Replace the bootstrap head arrays */ { struct array_cache *ptr; ptr = kmalloc(sizeof(struct arraycache_init), GFP_KERNEL); --