summaryrefslogtreecommitdiff
path: root/memfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'memfd.c')
-rw-r--r--memfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memfd.c b/memfd.c
index e595501d425..79e79579d84 100644
--- a/memfd.c
+++ b/memfd.c
@@ -110,7 +110,7 @@ int kdbus_memfd_new(const char *name, size_t size, int *fd)
int f;
int ret;
- mf = kzalloc(sizeof(struct kdbus_memfile), GFP_KERNEL);
+ mf = kzalloc(sizeof(*mf), GFP_KERNEL);
if (!mf)
return -ENOMEM;