linux/drivers/net
Su Hui f5aa87a2c0 octeontx2-af: fix the double free in rvu_npc_freemem()
[ Upstream commit 6e965eba43 ]

Clang static checker(scan-build) warning:
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:line 2184, column 2
Attempt to free released memory.

npc_mcam_rsrcs_deinit() has released 'mcam->counters.bmap'. Deleted this
redundant kfree() to fix this double free problem.

Fixes: dd78428786 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
Signed-off-by: Su Hui <suhui@nfschina.com>
Reviewed-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://lore.kernel.org/r/20240424022724.144587-1-suhui@nfschina.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-02 16:35:22 +02:00
..
arcnet net: fill in MODULE_DESCRIPTION()s for missing arcnet 2024-02-15 08:03:46 -08:00
bonding xdp, bonding: Fix feature flags when there are no slave devs anymore 2024-03-05 16:19:42 -08:00
caif
can can: m_can: Start/Cancel polling timer together with interrupts 2024-03-26 18:16:43 -04:00
dsa net: dsa: mv88e6xx: fix supported_interfaces setup in mv88e6250_phylink_get_caps() 2024-05-02 16:35:16 +02:00
ethernet octeontx2-af: fix the double free in rvu_npc_freemem() 2024-05-02 16:35:22 +02:00
fddi net: fill in MODULE_DESCRIPTION()s for fddik/skfp 2024-02-15 08:03:46 -08:00
fjes fjes: fix memleaks in fjes_hw_setup 2024-01-24 18:03:53 -08:00
hamradio
hippi
hyperv hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed 2024-02-04 13:38:08 +00:00
ieee802154 net: fill in MODULE_DESCRIPTION()s for ieee802154/fakelb 2024-02-15 08:03:45 -08:00
ipa net: ipa: don't overrun IPA suspend interrupt registers 2024-02-21 11:25:17 +00:00
ipvlan net: fill in MODULE_DESCRIPTION()s for ipvtap 2024-02-09 14:12:02 -08:00
mctp
mdio net: mdio: mux-bcm-iproc: Use alignment helpers and SZ_4K 2024-01-03 16:40:59 -08:00
netdevsim netdevsim: avoid potential loop in nsim_dev_trap_report_work() 2024-02-02 11:00:38 -08:00
pcs net: pcs: xpcs: Return EINVAL in the internal methods 2024-04-13 13:10:00 +02:00
phy net: phy: dp83869: Fix MII mode failure 2024-05-02 16:35:21 +02:00
plip net: fill in MODULE_DESCRIPTION()s for plip 2024-02-15 08:03:46 -08:00
ppp net: fill in MODULE_DESCRIPTION()s for ppp 2024-02-15 08:03:46 -08:00
pse-pd
slip net: fill in MODULE_DESCRIPTION()s for SLIP 2024-01-11 16:16:08 -08:00
team
thunderbolt
usb net: usb: ax88179_178a: stop lying about skb->truesize 2024-05-02 16:35:17 +02:00
vmxnet3 vmxnet3: Fix missing reserved tailroom 2024-03-26 18:17:32 -04:00
vxlan vxlan: drop packets from invalid src-address 2024-05-02 16:35:15 +02:00
wan net: fill in MODULE_DESCRIPTION()s for ds26522 module 2024-01-11 16:16:08 -08:00
wireguard wireguard: netlink: access device through ctx instead of peer 2024-04-03 15:32:26 +02:00
wireless wifi: mac80211_hwsim: init peer measurement result 2024-05-02 16:35:14 +02:00
wwan net: wwan: t7xx: Split 64bit accesses to fix alignment issues 2024-04-10 16:37:56 +02:00
xen-netback net: fill in MODULE_DESCRIPTION()s for xen-netback 2024-02-15 08:03:45 -08:00
amt.c amt: do not use overwrapped cb area 2024-01-11 16:55:17 -08:00
bareudp.c
dummy.c net: add netdev_lockdep_set_classes() to virtual drivers 2024-04-13 13:09:59 +02:00
eql.c
geneve.c geneve: fix header validation in geneve[6]_xmit_skb 2024-04-17 11:23:29 +02:00
gtp.c net: gtp: Fix Use-After-Free in gtp_dellink 2024-05-02 16:35:17 +02:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c net: add netdev_lockdep_set_classes() to virtual drivers 2024-04-13 13:09:59 +02:00
macsec.c Revert "net: macsec: use skb_ensure_writable_head_tail to expand the skb" 2024-01-23 17:17:04 -08:00
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c tun: limit printing rate when illegal packet received by tun dev 2024-04-27 17:12:52 +02:00
veth.c net: add netdev_lockdep_set_classes() to virtual drivers 2024-04-13 13:09:59 +02:00
virtio_net.c virtio_net: Do not send RSS key if it is not supported 2024-04-17 11:23:24 +02:00
vrf.c
vsockmon.c
xen-netfront.c xen-netfront: Add missing skb_mark_for_recycle 2024-04-10 16:38:02 +02:00