aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/shm_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/shm_open.c b/lib/libc/sys/shm_open.c
index c7020fd76c3c..e5666a3558e9 100644
--- a/lib/libc/sys/shm_open.c
+++ b/lib/libc/sys/shm_open.c
@@ -65,7 +65,7 @@ shm_create_largepage(const char *path, int flags, int psind, int alloc_policy,
int error, fd, saved_errno;
fd = __sys_shm_open2(path, flags | O_CREAT, mode, SHM_LARGEPAGE, NULL);
- if (error == -1)
+ if (fd == -1)
return (-1);
memset(&slc, 0, sizeof(slc));