]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ae0016b2c6585c14b79005ad25dd91ce1cda172
tree88063203851f403b0fbb7ae8bedd7672a5eb2518
parente21b6b8e23278b2af7db4838320cadc8324db3be
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