summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorYuval Mintz <yuvalm@mellanox.com>2017-09-12 06:50:53 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-12 09:51:20 (GMT)
commitf860ca549de4670e95516d6e7cbbc733a69c63db (patch)
treecab236dd062d0eab03954ff3af3203edb7622883 /COPYING
parent065af12fd1393cdbfebf735d7a7bcce03e84d807 (diff)
downloadlinux-f860ca549de4670e95516d6e7cbbc733a69c63db.tar.xz
mlxsw: spectrum: Prevent mirred-related crash on removal
[ Upstream commit 6399ebcccffa12e65bc15eda039d37673264ebce ] When removing the offloading of mirred actions under matchall classifiers, mlxsw would find the destination port associated with the offloaded action and utilize it for undoing the configuration. Depending on the order by which ports are removed, it's possible that the destination port would get removed before the source port. In such a scenario, when actions would be flushed for the source port mlxsw would perform an illegal dereference as the destination port is no longer listed. Since the only item necessary for undoing the configuration on the destination side is the port-id and that in turn is already maintained by mlxsw on the source-port, simply stop trying to access the destination port and use the port-id directly instead. Fixes: 763b4b70af ("mlxsw: spectrum: Add support in matchall mirror TC offloading") Signed-off-by: Yuval Mintz <yuvalm@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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions