summaryrefslogtreecommitdiff
path: root/net/smc/smc_pnet.c
diff options
context:
space:
mode:
authorTarick Bedeir <tarick@google.com>2018-05-13 16:38:45 -0700
committerDavid S. Miller <davem@davemloft.net>2018-05-14 16:29:08 -0400
commit57f6f99fdad9984801cde05c1db68fe39b474a10 (patch)
tree9d6d421a3d6e40a33d29704d3df85ec0a8ebef21 /net/smc/smc_pnet.c
parentb196d88aba8ac72b775137854121097f4c4c6862 (diff)
downloadlinux-57f6f99fdad9984801cde05c1db68fe39b474a10.tar.gz
linux-57f6f99fdad9984801cde05c1db68fe39b474a10.tar.bz2
linux-57f6f99fdad9984801cde05c1db68fe39b474a10.zip
net/mlx4_core: Fix error handling in mlx4_init_port_info.
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: 096335b3f983 ("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>
Diffstat (limited to 'net/smc/smc_pnet.c')
0 files changed, 0 insertions, 0 deletions