diff options
author | Eric Dumazet <edumazet@google.com> | 2017-09-01 23:03:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-02 02:33:17 +0200 |
commit | 4cc5b44b29a9de9b3f841efedaa3f769066c63cc (patch) | |
tree | 2a98212b93c7c09a10a29c57754f3bc8cde99627 /kernel | |
parent | selftests: correct define in msg_zerocopy.c (diff) | |
download | linux-4cc5b44b29a9de9b3f841efedaa3f769066c63cc.tar.xz linux-4cc5b44b29a9de9b3f841efedaa3f769066c63cc.zip |
inetpeer: fix RCU lookup()
Excess of seafood or something happened while I cooked the commit
adding RB tree to inetpeer.
Of course, RCU rules need to be respected or bad things can happen.
In this particular loop, we need to read *pp once per iteration, not
twice.
Fixes: b145425f269a ("inetpeer: remove AVL implementation in favor of RB tree")
Reported-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions