net/mlx5: E-Switch, Protect from invalid memory access in offload fdb table
authorRoi Dayan <roid@mellanox.com>
Thu, 21 Mar 2019 22:51:35 +0000 (15:51 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:42 +0000 (12:24 -0700)
commit5c1d260ed10cf08dd7a0299c103ad0a3f9a9f7a1
tree88063203851f403b0fbb7ae8bedd7672a5eb2518
parent84be899f6fd233ff2aeaf14cc43e6457425122b2
net/mlx5: E-Switch, Protect from invalid memory access in offload fdb table

The esw offloads structures share a union with the legacy mode structs.
Reset the offloads struct to zero in init to protect from null
assumptions made by the legacy mode code.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c