|
@@ -2861,7 +2861,7 @@ static struct pool *pool_create(struct mapped_device *pool_md,
|
|
return (struct pool *)pmd;
|
|
return (struct pool *)pmd;
|
|
}
|
|
}
|
|
|
|
|
|
- pool = kmalloc(sizeof(*pool), GFP_KERNEL);
|
|
|
|
|
|
+ pool = kzalloc(sizeof(*pool), GFP_KERNEL);
|
|
if (!pool) {
|
|
if (!pool) {
|
|
*error = "Error allocating memory for pool";
|
|
*error = "Error allocating memory for pool";
|
|
err_p = ERR_PTR(-ENOMEM);
|
|
err_p = ERR_PTR(-ENOMEM);
|