]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fix uninitialized variable modact
authorMaor Dickman <maord@nvidia.com>
Sun, 30 Jan 2022 14:00:41 +0000 (16:00 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Feb 2022 04:59:42 +0000 (20:59 -0800)
commit801c154342ad7b6c7f01ffebc33d691f77ec2cb1
treeb0ff21175bc4a44812e0a7e0f999de84a86a1a55
parent0124f7a48328bd3170c784bdf252accc78d7961e
net/mlx5: E-Switch, Fix uninitialized variable modact

The variable modact is not initialized before used in command
modify header allocation which can cause command to fail.

Fix by initializing modact with zeros.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 08893db24614 ("net/mlx5: E-Switch, Mark miss packets with new chain id mapping")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c