mirror-linux/drivers/net
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
..
appletalk
arcnet
bonding bonding: fix NULL deref in bond_rr_gen_slave_id 2022-09-22 06:39:40 -07:00
caif
can can: gs_usb: gs_usb_set_phys_id(): return with error if identify is not supported 2022-09-21 09:48:52 +02:00
dsa net: mt7531: ensure all MACs are powered down before reset 2022-09-23 06:58:49 -07:00
ethernet Revert "net: mvpp2: debugfs: fix memory leak when using debugfs_lookup()" 2022-09-26 10:06:34 -07:00
fddi skfp/h: fix repeated words in comments 2022-08-12 11:20:29 +01:00
fjes
hamradio
hippi
hyperv
ieee802154 ieee802154: cc2520: add rc code in cc2520_tx() 2022-08-29 11:10:22 +02:00
ipa net: ipa: properly limit modem routing table use 2022-09-20 08:11:13 -07:00
ipvlan ipvlan: Fix out-of-bound bugs caused by unset skb->mac_header 2022-09-09 12:46:06 +01:00
mctp
mdio of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-20 07:32:09 -07:00
netdevsim netdevsim: Fix hwstats debugfs file permissions 2022-09-19 14:40:38 -07:00
pcs
phy net: phy: micrel: fix shared interrupt on LAN8814 2022-09-22 06:36:32 -07:00
plip
ppp
slip
team net: team: Unsync device addresses on ndo_stop 2022-09-16 14:34:01 +01:00
usb net: usb: qmi_wwan: add Quectel RM520N 2022-09-06 11:38:56 +02:00
vmxnet3
vxlan
wan
wireguard wireguard: netlink: avoid variable-sized memcpy on sockaddr 2022-09-20 11:26:14 -07:00
wireless wifi: mt76: fix 5 GHz connection regression on mt76x0/mt76x2 2022-09-12 14:26:02 +03:00
wwan
xen-netback xen-netback: only remove 'hotplug-status' when the vif is actually destroyed 2022-09-03 09:53:02 +01:00
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c Revert "net: macsec: update SCI upon MAC address change." 2022-08-19 16:50:36 -07:00
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: support not enabling carrier in TUNSETIFF 2022-09-23 12:02:03 +01:00
veth.c
virtio_net.c Including fixes from netfilter. 2022-08-18 19:37:15 -07:00
vrf.c
vsockmon.c
xen-netfront.c