|
@@ -270,10 +270,9 @@ EXPORT_SYMBOL_GPL(i2o_dma_realloc);
|
|
|
int i2o_pool_alloc(struct i2o_pool *pool, const char *name,
|
|
|
size_t size, int min_nr)
|
|
|
{
|
|
|
- pool->name = kmalloc(strlen(name) + 1, GFP_KERNEL);
|
|
|
+ pool->name = kstrdup(name, GFP_KERNEL);
|
|
|
if (!pool->name)
|
|
|
goto exit;
|
|
|
- strcpy(pool->name, name);
|
|
|
|
|
|
pool->slab =
|
|
|
kmem_cache_create(pool->name, size, 0, SLAB_HWCACHE_ALIGN, NULL);
|