]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/inet_connection_sock.c
ipv4: fix rcu splat
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / inet_connection_sock.c
index 3ea465286a3993a8e5beec83b59fc5832c0c6993..c7a4de05ca04823eaa4e14ba0857f275ef64dd1f 100644 (file)
@@ -806,8 +806,8 @@ EXPORT_SYMBOL_GPL(inet_csk_compat_setsockopt);
 
 static struct dst_entry *inet_csk_rebuild_route(struct sock *sk, struct flowi *fl)
 {
-       struct inet_sock *inet = inet_sk(sk);
-       struct ip_options_rcu *inet_opt;
+       const struct inet_sock *inet = inet_sk(sk);
+       const struct ip_options_rcu *inet_opt;
        __be32 daddr = inet->inet_daddr;
        struct flowi4 *fl4;
        struct rtable *rt;