Files
linux/drivers/net/ethernet
Tarick Bedeir 5ff45c86e9 net/mlx4_core: Fix error handling in mlx4_init_port_info.
[ Upstream commit 57f6f99fda ]

Avoid exiting the function with a lingering sysfs file (if the first
call to device_create_file() fails while the second succeeds), and avoid
calling devlink_port_unregister() twice.

In other words, either mlx4_init_port_info() succeeds and returns zero, or
it fails, returns non-zero, and requires no cleanup.

Fixes: 096335b3f9 ("mlx4_core: Allow dynamic MTU configuration for IB ports")
Signed-off-by: Tarick Bedeir <tarick@google.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 16:17:23 +02:00
..
2018-04-12 12:32:18 +02:00
2017-08-19 17:13:41 -07:00
2018-04-29 11:33:10 +02:00
2017-07-17 09:52:57 -07:00
2018-03-31 18:10:42 +02:00
2018-05-19 10:20:25 +02:00
2017-07-17 13:37:15 -07:00
2017-11-24 08:37:03 +01:00