]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/ipv4/inet_connection_sock.c
ipv4: fix rcu splat
authorEric Dumazet <edumazet@google.com>
Tue, 17 Jul 2012 20:42:13 +0000 (22:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 20:47:33 +0000 (13:47 -0700)
commit5abf7f7e0f6bdbfcac737f636497d7016d9507eb
treec52a21ed83a306c6626a00378934a28a6daa8db0
parentd3a25c980fc231238256f8d80816367674e5caaf
ipv4: fix rcu splat

free_nh_exceptions() should use rcu_dereference_protected(..., 1)
since its called after one RCU grace period.

Also add some const-ification in recent code.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c
net/ipv4/inet_connection_sock.c
net/ipv4/route.c