Skip to content

Commit bb13835

Browse files
committed
applied comment
1 parent 1bcf3f6 commit bb13835

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/provider/provider_os_memory_linux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ static int syscall_memfd_create(void) {
9696
int fd = -1;
9797
#ifdef __NR_memfd_create
9898
// SYS_memfd_create is supported since Linux 3.17, glibc 2.27
99-
fd = syscall(SYS_memfd_create, "anon_fd_name", 0);
99+
// not using SYS_memfd_create for consistency with syscall_memfd_secret
100+
fd = syscall(__NR_memfd_create, "anon_fd_name", 0);
100101
if (fd == -1) {
101102
LOG_PERR("memfd_create() failed");
102103
}

0 commit comments

Comments
 (0)