OSDN Git Service

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)
commit0fd79b1e17bec8460039f6bdb57163a0442110d9
tree3ae8b9786f1bca893d29898dc15d5fea89cbc8ea
parent2347cee83b2bd868bde2d283db0fac89f22be4e0
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: 2b688ea5efde ("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