git: a5918bfbf9ac - stable/14 - linux: Fix a typo in linux_recvmsg_common
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Mar 2025 17:44:15 UTC
The branch stable/14 has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=a5918bfbf9ac512ce2840541e9b66c2ffed44dc6
commit a5918bfbf9ac512ce2840541e9b66c2ffed44dc6
Author: Alex S <iwtcex@gmail.com>
AuthorDate: 2025-03-10 18:12:36 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-03-31 17:42:56 +0000
linux: Fix a typo in linux_recvmsg_common
We are supposed to check the result of bsd_to_linux_sockopt_level here
rather than its input.
(cherry picked from commit 9f55630b8d72602f6ec86b15b607f5fc5fde911e)
---
sys/compat/linux/linux_socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index d35ff37aee98..bed772d56684 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1856,7 +1856,7 @@ linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
lcm->cmsg_level = bsd_to_linux_sockopt_level(cm->cmsg_level);
if (lcm->cmsg_type == -1 ||
- cm->cmsg_level == -1) {
+ lcm->cmsg_level == -1) {
LINUX_RATELIMIT_MSG_OPT2(
"unsupported recvmsg cmsg level %d type %d",
cm->cmsg_level, cm->cmsg_type);