]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core: resolvs kernel panic when connectx_port_config fail to set ports
authorMoshe Lazer <moshel@mellanox.com>
Sun, 16 Jun 2013 08:04:17 +0000 (11:04 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:11 +0000 (14:45 -0700)
commiteff7f7e5f5533875d77c1876c5e5faf047b907a3
tree65ece0d813075f31c4d5846facb861b4bf1b8214
parent93bf3dd8d1e10260c0b62055e9215ea3fa808fa4
mlx4_core: resolvs kernel panic when connectx_port_config fail to set ports

When changing ports configutation (e.g. from ib,ib to eth,eth)
the device is disconnected from interfaces and catas error lists
than we change ports config and reconnecting the device.
In case ports config changing fails the device left disconnected.
If we try again to configure the ports the driver retry to
disconnect the device form its lists and crashes in list_del
function.  To aviod this the list_del replaced by list_del_init
(to allow redeleting the device).

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/net/ethernet/mellanox/mlx4/intf.c
drivers/net/ethernet/mellanox/mlx4/main.c