Messages in this thread |  | | | Subject | Re: [PATCH RFC v2] slab: introduce kmalloc_array | | From | Xi Wang <> | | Date | Tue, 14 Feb 2012 11:43:36 -0500 |
| |
On Feb 14, 2012, at 11:34 AM, Christoph Lameter wrote: > You can if you check the results later. A zero size return would be an > indication of an error. No need to pass it on to kmalloc.
Maybe I misunderstood something here. How do you not pass it to kmalloc() with kmalloc(SAFE_ARRAY_SIZE(n, size), ...)?
- xi
|  |