Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2023 04:24:53 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f27aff8f7f4f - main - linux/netlink: don't override sopt level
Message-ID:  <202312270424.3BR4OrT3057074@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312270424.3BR4OrT3057074>