From: Shlomo Pongratz Date: Sun, 2 Feb 2014 13:42:10 +0000 (+0200) Subject: net/ipv4: Use proper RCU APIs for writer-side in udp_offload.c X-Git-Tag: v3.14-rc3~36^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a664a4f7aa4f01ca8728e3ec43618327416fc8ff;p=pandora-kernel.git net/ipv4: Use proper RCU APIs for writer-side in udp_offload.c RCU writer side should use rcu_dereference_protected() and not rcu_dereference(), fix that. This also removes the "suspicious RCU usage" warning seen when running with CONFIG_PROVE_RCU. Also, don't use rcu_assign_pointer/rcu_dereference for pointers which are invisible beyond the udp offload code. Fixes: b582ef0 ('net: Add GRO support for UDP encapsulating protocols') Reported-by: Eric Dumazet Cc: Eric Dumazet Signed-off-by: Or Gerlitz Signed-off-by: Shlomo Pongratz Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed