memfd: fix memfd_create() syscall wrapper

Unlike earlier versions, the syscall only takes 2 arguments in its
final version, not 3.
This commit is contained in:
Daniel Mack
2014-08-18 12:37:22 +02:00
parent 43bde981cc
commit 4632777024
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1121,7 +1121,7 @@ int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *al
if (!g)
return -ENOMEM;
r = memfd_create(g, 0, MFD_ALLOW_SEALING);
r = memfd_create(g, MFD_ALLOW_SEALING);
if (r < 0)
return -errno;