diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-09-24 10:25:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-30 14:22:59 -0400 |
commit | 559835ea7292e2f09304d81eda16f4209433245e (patch) | |
tree | 516a56d352969181deffa05466c7a0cfd0e15dc1 /firmware/dsp56k | |
parent | 9a3bab6b05383f1e4c3716b3615500c51285959e (diff) |
vxlan: Use RCU apis to access sk_user_data.
Use of RCU api makes vxlan code easier to understand. It also
fixes bug due to missing ACCESS_ONCE() on sk_user_data dereference.
In rare case without ACCESS_ONCE() compiler might omit vs on
sk_user_data dereference.
Compiler can use vs as alias for sk->sk_user_data, resulting in
multiple sk_user_data dereference in rcu read context which
could change.
CC: Jesse Gross <jesse@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware/dsp56k')
0 files changed, 0 insertions, 0 deletions