git: 8883e8de0559 - stable/13 - munmap.2: Remove EINVAL for negative len
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Jan 2025 14:30:57 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=8883e8de05598e475d2ac129dfefd734e06908ab commit 8883e8de05598e475d2ac129dfefd734e06908ab Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2025-01-15 21:44:31 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2025-01-20 14:30:43 +0000 munmap.2: Remove EINVAL for negative len len is unsigned (it is size_t), so cannot be negative. Sponsored by: The FreeBSD Foundation (cherry picked from commit fab411c4fd5224e3dd44e0eb288d60b27480e2d1) (cherry picked from commit e2cbfa1f5045019d34eb0091db7755c151ea06d5) --- lib/libc/sys/munmap.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index cf8d9ec22b1c..2411ccb3b0db 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -56,7 +56,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