git: f27aff8f7f4f - main - linux/netlink: don't override sopt level
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Dec 2023 04:24:53 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=f27aff8f7f4f7628a652602e55409f7e858d7f56
commit f27aff8f7f4f7628a652602e55409f7e858d7f56
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-12-27 04:21:58 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2023-12-27 04:21:58 +0000
linux/netlink: don't override sopt level
This override effectively prevents correct entering of netlink
protocol specific pr_ctloutput in sosetopt().
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D42520
---
sys/compat/linux/linux_socket.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index f474ea06440a..ae22af90d443 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -2117,7 +2117,6 @@ linux_setsockopt(struct thread *td, struct linux_setsockopt_args *args)
name = linux_to_bsd_tcp_sockopt(args->optname);
break;
case SOL_NETLINK:
- level = SOL_SOCKET;
name = args->optname;
break;
default: