Files
linux/drivers/net
Ido Schimmel e2b825e8de mlxsw: spectrum_router: Fix NULL pointer deref
[ Upstream commit 8764a8267b ]

When we remove the neighbour associated with a nexthop we should always
refuse to write the nexthop to the adjacency table. Regardless if it is
already present in the table or not.

Otherwise, we risk dereferencing the NULL pointer that was set instead
of the neighbour.

Fixes: a7ff87acd9 ("mlxsw: spectrum_router: Implement next-hop routing")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Alexander Petrovskiy <alexpe@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-17 09:38:53 +01:00
..
2016-06-15 22:06:06 -07:00
2017-06-17 06:41:50 +02:00
2017-12-16 16:25:47 +01:00
2017-12-20 10:07:30 +01:00
2017-10-08 10:26:08 +02:00
2017-03-22 12:43:32 +01:00
2017-12-09 22:01:54 +01:00
2016-05-09 00:00:28 -04:00
2016-09-20 22:55:23 -04:00
2017-09-20 08:19:53 +02:00
2016-04-26 15:53:05 -04:00
2016-08-30 22:27:18 -07:00
2017-07-05 14:40:23 +02:00
2017-11-24 08:33:40 +01:00
2017-07-21 07:42:18 +02:00