]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix NULL pointer dereference in extended destination
authorEli Britstein <elibr@mellanox.com>
Tue, 15 Oct 2019 12:44:18 +0000 (12:44 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:19 +0000 (16:27 -0700)
commit8f4b02f976775635bcea898854c8862d0ecf0a67
tree3ae8b9786f1bca893d29898dc15d5fea89cbc8ea
parentc61061e076ae601cdaaab2666027ac9a0722750b
net/mlx5: Fix NULL pointer dereference in extended destination

The cited commit refactored the encap id into a struct pointed from the
destination.
Bug fix for the case there is no encap for one of the destinations.

Fixes: efc7d8667484 ("net/mlx5: Add flow steering actions to fs_cmd shim layer")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c