]> 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)
commitb91bd40a612a0fbb489fc13b5a8a4e4cfe54fe38
tree88063203851f403b0fbb7ae8bedd7672a5eb2518
parent3d4d8c0a45af0fe46f9c54f988ef00a9cacf38b0
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