Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--criu/kerndat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/criu/kerndat.c b/criu/kerndat.c
index a209190ee..5b567e79f 100644
--- a/criu/kerndat.c
+++ b/criu/kerndat.c
@@ -500,7 +500,7 @@ static bool kerndat_has_memfd_hugetlb(void)
if (ret >= 0) {
kdat.has_memfd_hugetlb = true;
close(ret);
- } else if (ret == -1 && (errno == EINVAL || errno == ENOENT)) {
+ } else if (ret == -1 && (errno == EINVAL || errno == ENOENT || errno == ENOSYS)) {
kdat.has_memfd_hugetlb = false;
} else {
pr_perror("Unexpected error from memfd_create(\"\", MFD_HUGETLB)");