]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up tipc patch for more kernels
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2026 09:30:36 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2026 09:30:36 +0000 (11:30 +0200)
queue-6.1/tipc-fix-u16-mtu-truncation-in-media-and-bearer-mtu-.patch
queue-6.6/tipc-fix-u16-mtu-truncation-in-media-and-bearer-mtu-.patch

index 67fa079fc3cfa85095524748563ef0cd297734f7..8dd22e0ab99af18dc58c4c5ee9dbbeda97070982 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 8336a9664703fe..1307dd1a961341 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 8336a9664703fe..1307dd1a961341 100644
        [TIPC_NLA_PROP_BROADCAST]       = { .type = NLA_U32 },
        [TIPC_NLA_PROP_BROADCAST_RATIO] = { .type = NLA_U32 }
  };
--- 
-2.53.0
-
index 42a29c43125406967272db9f02ab60f313c4b498..abfce460b7fff3f49eeec8165912fc87f19b5845 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 8336a9664703fe..1307dd1a961341 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 8336a9664703fe..1307dd1a961341 100644
        [TIPC_NLA_PROP_BROADCAST]       = { .type = NLA_U32 },
        [TIPC_NLA_PROP_BROADCAST_RATIO] = { .type = NLA_U32 }
  };
--- 
-2.53.0
-