]> git.baikalelectronics.ru Git - kernel.git/commit
fib_trie: Fall back to slen update on inflate/halve failure
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 22 Jan 2015 23:51:20 +0000 (15:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 22:47:16 +0000 (14:47 -0800)
commit5138c20fbb397fd51f7ee315bd26396c93b5bb4a
tree7f97ff5e1bd693e43b61eaf75f238a8fbe96e7ea
parent9a5a6179367a1b91e5e0463ddf81662deb4b6de9
fib_trie: Fall back to slen update on inflate/halve failure

This change corrects an issue where if inflate or halve fails we were
exiting the resize function without at least updating the slen for the
node.  To correct this I have moved the update of max_size into the while
loop so that it is only decremented on a successful call to either inflate
or halve.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c