linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Rasmus Villemoes fa51b247d6 net/mlx4: fix some error handling in mlx4_multi_func_init()
The while loop after err_slaves should use post-decrement; otherwise
we'll fail to do the kfrees for i==0, and will run into out-of-bounds
accesses if the setup above failed already at i==0.

[I'm not sure why one even bothers populating the ->vlan_filter array:
mlx4.h isn't #included by anything outside
drivers/net/ethernet/mellanox/mlx4/, and "git grep -C2 -w vlan_filter
drivers/net/ethernet/mellanox/mlx4/" seems to suggest that the
vlan_filter elements aren't used at all.]

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-02-11 11:04:54 -05:00
..
mlx4 net/mlx4: fix some error handling in mlx4_multi_func_init() 2016-02-11 11:04:54 -05:00
mlx5/core Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
mlxsw mlxsw: fix SWITCHDEV_OBJ_ID_PORT_MDB 2016-01-13 10:31:21 -05:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00