aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 6c923824ec91..5772756c63c1 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -2861,7 +2861,7 @@ static struct pool *pool_create(struct mapped_device *pool_md,
2861 return (struct pool *)pmd; 2861 return (struct pool *)pmd;
2862 } 2862 }
2863 2863
2864 pool = kmalloc(sizeof(*pool), GFP_KERNEL); 2864 pool = kzalloc(sizeof(*pool), GFP_KERNEL);
2865 if (!pool) { 2865 if (!pool) {
2866 *error = "Error allocating memory for pool"; 2866 *error = "Error allocating memory for pool";
2867 err_p = ERR_PTR(-ENOMEM); 2867 err_p = ERR_PTR(-ENOMEM);