diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2018-08-07 09:59:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-26 09:37:58 +0300 |
commit | f8ce022004ca10d218c50f7822726fcd651431d5 (patch) | |
tree | 268d7c89ea81515b62eeb0444ac83d91c940b455 /include/asm-generic/int-ll64.h | |
parent | 571f1f6862bf8dfdffe2e833089122a75a19a7b8 (diff) | |
download | linux-f8ce022004ca10d218c50f7822726fcd651431d5.tar.xz |
net/mlx5: Fix debugfs cleanup in the device init/remove flow
[ Upstream commit 5df816e7f43f1297c40021ef17ec6e722b45c82f ]
When initializing the device (procedure init_one), the driver
calls mlx5_pci_init to perform pci initialization. As part of this
initialization, mlx5_pci_init creates a debugfs directory.
If this creation fails, init_one aborts, returning failure to
the caller (which is the probe method caller).
The main reason for such a failure to occur is if the debugfs
directory already exists. This can happen if the last time
mlx5_pci_close was called, debugfs_remove (silently) failed due
to the debugfs directory not being empty.
Guarantee that such a debugfs_remove failure will not occur by
instead calling debugfs_remove_recursive in procedure mlx5_pci_close.
Fixes: 59211bd3b632 ("net/mlx5: Split the load/unload flow into hardware and software flows")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/asm-generic/int-ll64.h')
0 files changed, 0 insertions, 0 deletions