summaryrefslogtreecommitdiff
path: root/fs/netfs/fscache_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/netfs/fscache_cache.c')
-rw-r--r--fs/netfs/fscache_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/netfs/fscache_cache.c b/fs/netfs/fscache_cache.c
index 8f70f8da064b..e709617b64d5 100644
--- a/fs/netfs/fscache_cache.c
+++ b/fs/netfs/fscache_cache.c
@@ -25,7 +25,7 @@ static struct fscache_cache *fscache_alloc_cache(const char *name)
{
struct fscache_cache *cache;
- cache = kzalloc(sizeof(*cache), GFP_KERNEL);
+ cache = kzalloc_obj(*cache, GFP_KERNEL);
if (cache) {
if (name) {
cache->name = kstrdup(name, GFP_KERNEL);