linux/drivers/net/ethernet/marvell
Sasha Levin 6052a4c11f Revert "net: mvpp2: debugfs: fix memory leak when using debugfs_lookup()"
This reverts commit fe2c9c61f6.

On Tue, Sep 13, 2022 at 05:48:58PM +0100, Russell King (Oracle) wrote:
>What happens if this is built as a module, and the module is loaded,
>binds (and creates the directory), then is removed, and then re-
>inserted?  Nothing removes the old directory, so doesn't
>debugfs_create_dir() fail, resulting in subsequent failure to add
>any subsequent debugfs entries?
>
>I don't think this patch should be backported to stable trees until
>this point is addressed.

Revert until a proper fix is available as the original behavior was
better.

Cc: Marcin Wojtas <mw@semihalf.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: stable@kernel.org
Reported-by: Russell King <linux@armlinux.org.uk>
Fixes: fe2c9c61f6 ("net: mvpp2: debugfs: fix memory leak when using debugfs_lookup()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220923234736.657413-1-sashal@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-09-26 10:06:34 -07:00
..
mvpp2 Revert "net: mvpp2: debugfs: fix memory leak when using debugfs_lookup()" 2022-09-26 10:06:34 -07:00
octeon_ep octeon_ep: use bitwise AND 2022-06-27 21:56:35 -07:00
octeontx2 octeontx2-pf: Fix NIX_AF_TL3_TL2X_LINKX_CFG register configuration 2022-08-05 18:56:51 -07:00
prestera net: marvell: Fix refcounting bugs in prestera_port_sfp_bind() 2022-09-22 07:23:58 -07:00
Kconfig net: mvneta: add support for page_pool_get_stats 2022-04-15 10:43:48 +01:00
Makefile octeon_ep: Add driver framework and device initialization 2022-04-13 12:56:32 +01:00
mv643xx_eth.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
mvmdio.c net: mvmdio: fix compilation warning 2021-11-16 18:55:17 -08:00
mvneta.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
mvneta_bm.c
mvneta_bm.h
pxa168_eth.c eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
skge.c eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
skge.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sky2.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
sky2.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00