]> git.baikalelectronics.ru Git - kernel.git/commit
IPV6 Fix a crash when trying to replace non existing route
authorMatti Vaittinen <matti.vaittinen@nsn.com>
Wed, 16 Nov 2011 21:18:02 +0000 (21:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 08:16:25 +0000 (03:16 -0500)
commit0e9e96cd6e85929d174cba69a7923a9733ce9e57
tree8b49170dec56070f9534905e7de7d1a3e682239a
parent2b25a4ad28cdb87848d4875ea66c7aacff1b4f23
IPV6 Fix a crash when trying to replace non existing route

This patch fixes a crash when non existing IPv6 route is tried to be changed.

When new destination node was inserted in middle of FIB6 tree, no relevant
sanity checks were performed. Later route insertion might have been prevented
due to invalid request, causing node with no rt info being left in tree.
When this node was accessed, a crash occurred.

Patch adds missing checks in fib6_add_1()

Signed-off-by: Matti Vaittinen <Mazziesaccount@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c