diff options
author | 2023-12-04 07:42:16 +0100 | |
---|---|---|
committer | 2023-12-04 07:42:16 +0100 | |
commit | 4906f39a1343713a4fb3fe78aecd12eba5257dc0 (patch) | |
tree | 2487e32b1e02681683a842f26bbc05e9d1aba308 /drivers/net/netkit.c | |
parent | devcoredump: Send uevent once devcd is ready (diff) | |
parent | Linux 6.7-rc4 (diff) | |
download | wireguard-linux-4906f39a1343713a4fb3fe78aecd12eba5257dc0.tar.xz wireguard-linux-4906f39a1343713a4fb3fe78aecd12eba5257dc0.zip |
Merge 6.7-rc4 into char-misc-linus
We need 6.7-rc4 in here as we need to revert one of the debugfs changes
that came in that release through the wireless tree.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/netkit.c')
-rw-r--r-- | drivers/net/netkit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/netkit.c b/drivers/net/netkit.c index 97bd6705c241..39171380ccf2 100644 --- a/drivers/net/netkit.c +++ b/drivers/net/netkit.c @@ -851,6 +851,12 @@ static int netkit_change_link(struct net_device *dev, struct nlattr *tb[], return -EACCES; } + if (data[IFLA_NETKIT_PEER_INFO]) { + NL_SET_ERR_MSG_ATTR(extack, data[IFLA_NETKIT_PEER_INFO], + "netkit peer info cannot be changed after device creation"); + return -EINVAL; + } + if (data[IFLA_NETKIT_POLICY]) { attr = data[IFLA_NETKIT_POLICY]; policy = nla_get_u32(attr); |