summaryrefslogtreecommitdiff
path: root/drivers/md/dm-pcache/dm_pcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-pcache/dm_pcache.c')
-rw-r--r--drivers/md/dm-pcache/dm_pcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-pcache/dm_pcache.c b/drivers/md/dm-pcache/dm_pcache.c
index e5f5936fa6f0..81c795c0400e 100644
--- a/drivers/md/dm-pcache/dm_pcache.c
+++ b/drivers/md/dm-pcache/dm_pcache.c
@@ -281,7 +281,7 @@ static int dm_pcache_ctr(struct dm_target *ti, unsigned int argc, char **argv)
}
/* Allocate memory for the cache structure */
- pcache = kzalloc(sizeof(struct dm_pcache), GFP_KERNEL);
+ pcache = kzalloc_obj(struct dm_pcache);
if (!pcache)
return -ENOMEM;