]> 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)
commitdb7d7cc0ca6b86143de88c7e465b55ca903271d8
tree8b49170dec56070f9534905e7de7d1a3e682239a
parentf5082b9a33bcdf2587dd6e2b68d8afd0ebc32a18
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