diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-26 05:24:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-26 20:42:39 +0200 |
commit | ded85aa86bff953190cb893fceeecaadcab53a80 (patch) | |
tree | abbb2c614d4b1778c2afc34038ac06e0aac14381 /net/lapb | |
parent | fib: fix fib_nl_newrule() (diff) | |
download | linux-ded85aa86bff953190cb893fceeecaadcab53a80.tar.xz linux-ded85aa86bff953190cb893fceeecaadcab53a80.zip |
fib_hash: fix rcu sparse and logical errors
While fixing CONFIG_SPARSE_RCU_POINTER errors, I had to fix accesses to
fz->fz_hash for real.
- &fz->fz_hash[fn_hash(f->fn_key, fz)]
+ rcu_dereference(fz->fz_hash) + fn_hash(f->fn_key, fz)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions