]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - net/ipv4/xfrm4_policy.c
Merge tag 'net-next-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev...
[thirdparty/kernel/linux.git] / net / ipv4 / xfrm4_policy.c
index c33bca2c3841540b20e92efe4202b07646c3714c..0294fef577fab134c451d6180cd8aab87fc8ab01 100644 (file)
@@ -69,7 +69,7 @@ static int xfrm4_get_saddr(struct net *net, int oif,
 static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
                          const struct flowi *fl)
 {
-       struct rtable *rt = (struct rtable *)xdst->route;
+       struct rtable *rt = dst_rtable(xdst->route);
        const struct flowi4 *fl4 = &fl->u.ip4;
 
        xdst->u.rt.rt_iif = fl4->flowi4_iif;
@@ -152,7 +152,6 @@ static struct ctl_table xfrm4_policy_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
-       { }
 };
 
 static __net_init int xfrm4_net_sysctl_init(struct net *net)
@@ -186,7 +185,7 @@ err_alloc:
 
 static __net_exit void xfrm4_net_sysctl_exit(struct net *net)
 {
-       struct ctl_table *table;
+       const struct ctl_table *table;
 
        if (!net->ipv4.xfrm4_hdr)
                return;