summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@redhat.com>2015-03-10 21:25:41 +0300
committerDavid S. Miller <davem@davemloft.net>2015-03-10 23:13:55 +0300
commit3ec320dd5c9465fbed3c84dd14ed3941ce757823 (patch)
tree5b03973355f122f5ddf9e911cb7e02305e9834f8 /net/switchdev/switchdev.c
parent7c23aaf2eacdd10825237160cb8005efd7222061 (diff)
downloadlinux-3ec320dd5c9465fbed3c84dd14ed3941ce757823.tar.xz
fib_trie: Correctly handle case of key == 0 in leaf_walk_rcu
In the case of a trie that had no tnodes with a key of 0 the initial look-up would fail resulting in an out-of-bounds cindex on the first tnode. This resulted in an entire trie being skipped. In order resolve this I have updated the cindex logic in the initial look-up so that if the key is zero we will always traverse the child zero path. Fixes: 8be33e95 ("fib_trie: Fib walk rcu should take a tnode and key instead of a trie and a leaf") Reported-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com> Tested-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions