]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up tipc_nl_mtu_range issue in older kernel branches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2026 09:23:51 +0000 (11:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2026 09:23:51 +0000 (11:23 +0200)
queue-5.10/tipc-fix-u16-mtu-truncation-in-media-and-bearer-mtu-.patch
queue-5.15/tipc-fix-u16-mtu-truncation-in-media-and-bearer-mtu-.patch

index e0ff457a3bf783c911d54eda67e9d54f9d470d8e..1ec69d50777225c305baf8ecd4e7cadec4f264d4 100644 (file)
@@ -42,18 +42,16 @@ Link: https://patch.msgid.link/20260714041541.307702-1-blbllhy@gmail.com
 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- net/tipc/netlink.c | 6 +++++-
+ net/tipc/netlink.c |    6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
 
-diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c
-index 35e167de0fcf78..3fb31857de6b5e 100644
 --- a/net/tipc/netlink.c
 +++ b/net/tipc/netlink.c
-@@ -113,12 +113,16 @@ const struct nla_policy tipc_nl_node_policy[TIPC_NLA_NODE_MAX + 1] = {
+@@ -113,12 +113,16 @@ const struct nla_policy tipc_nl_node_pol
  };
  
  /* Properties valid for media, bearer and link */
-+static const struct netlink_range_validation tipc_nl_mtu_range = {
++static struct netlink_range_validation tipc_nl_mtu_range = {
 +      .max = U16_MAX,
 +};
 +
@@ -67,6 +65,3 @@ index 35e167de0fcf78..3fb31857de6b5e 100644
        [TIPC_NLA_PROP_BROADCAST]       = { .type = NLA_U32 },
        [TIPC_NLA_PROP_BROADCAST_RATIO] = { .type = NLA_U32 }
  };
--- 
-2.53.0
-
index ed2a6c80a6c46ebcb3174b43ca5456b6260f4b94..e3eb6a822fe5a3a8442571735e2190b01aa31154 100644 (file)
@@ -42,18 +42,16 @@ Link: https://patch.msgid.link/20260714041541.307702-1-blbllhy@gmail.com
 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- net/tipc/netlink.c | 6 +++++-
+ net/tipc/netlink.c |    6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
 
-diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c
-index 35e167de0fcf78..3fb31857de6b5e 100644
 --- a/net/tipc/netlink.c
 +++ b/net/tipc/netlink.c
-@@ -113,12 +113,16 @@ const struct nla_policy tipc_nl_node_policy[TIPC_NLA_NODE_MAX + 1] = {
+@@ -113,12 +113,16 @@ const struct nla_policy tipc_nl_node_pol
  };
  
  /* Properties valid for media, bearer and link */
-+static const struct netlink_range_validation tipc_nl_mtu_range = {
++static struct netlink_range_validation tipc_nl_mtu_range = {
 +      .max = U16_MAX,
 +};
 +
@@ -67,6 +65,3 @@ index 35e167de0fcf78..3fb31857de6b5e 100644
        [TIPC_NLA_PROP_BROADCAST]       = { .type = NLA_U32 },
        [TIPC_NLA_PROP_BROADCAST_RATIO] = { .type = NLA_U32 }
  };
--- 
-2.53.0
-