drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
c3683bad5699 ("net/mlx5e: Fix use after free in mlx5e_fs_init()")
8c2600bce6ce ("net/mlx5e: Convert ethtool_steering member of flow_steering struct to pointer")
https://lore.kernel.org/all/
20220825104410.
67d4709c@canb.auug.org.au/
https://lore.kernel.org/all/
20220823055533.334471-1-saeed@kernel.org/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
20 files changed:
goto err_free_vlan;
}
- return fs;
+ err = mlx5e_fs_ethtool_alloc(fs);
+ if (err)
+ goto err_free_tc;
- err_free_fs:
- kvfree(fs);
+ return fs;
+err_free_tc:
+ mlx5e_fs_tc_free(fs);
err_free_vlan:
mlx5e_fs_vlan_free(fs);
+ err_free_fs:
+ kvfree(fs);
err:
return NULL;
}