From fab411c4fd5224e3dd44e0eb288d60b27480e2d1 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 15 Jan 2025 16:44:31 -0500 Subject: [PATCH] munmap.2: Remove EINVAL for negative len len is unsigned (it is size_t), so cannot be negative. Sponsored by: The FreeBSD Foundation --- lib/libsys/munmap.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libsys/munmap.2 b/lib/libsys/munmap.2 index 560ed005626..d6b53f1bcf1 100644 --- a/lib/libsys/munmap.2 +++ b/lib/libsys/munmap.2 @@ -55,7 +55,7 @@ will fail if: .It Bq Er EINVAL The .Fa len -argument was zero or negative, or +argument was zero, or some part of the region being unmapped is outside the valid address range for a process. .El