Loading net/ipv4/icmp.c +1 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES+1]; */ static struct sock *icmp_sk(struct net *net) { return *this_cpu_ptr(net->ipv4.icmp_sk); return this_cpu_read(*net->ipv4.icmp_sk); } /* Called with BH disabled */ Loading Loading
net/ipv4/icmp.c +1 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES+1]; */ static struct sock *icmp_sk(struct net *net) { return *this_cpu_ptr(net->ipv4.icmp_sk); return this_cpu_read(*net->ipv4.icmp_sk); } /* Called with BH disabled */ Loading