linux/drivers/net/ethernet
Yongzhi Liu ba18deddd6 net: pds_core: Fix possible double free in error handling path
When auxiliary_device_add() returns error and then calls
auxiliary_device_uninit(), Callback function pdsc_auxbus_dev_release
calls kfree(padev) to free memory. We shouldn't call kfree(padev)
again in the error handling path.

Fix this by cleaning up the redundant kfree() and putting
the error handling back to where the errors happened.

Fixes: 4569cce43b ("pds_core: add auxiliary_bus devices")
Signed-off-by: Yongzhi Liu <hyperlyzcs@gmail.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20240306105714.20597-1-hyperlyzcs@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-03-07 12:03:19 +01:00
..
3com
8390 net: fill in MODULE_DESCRIPTION()s for 8390 2024-01-24 15:12:20 -08:00
actions
adaptec
adi net: ethernet: adi: move PHYLIB from vendor to driver symbol 2024-02-28 11:16:34 +00:00
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: Take xdp packets stats into account in ena_get_stats64() 2024-01-03 18:00:58 -08:00
amd net: pds_core: Fix possible double free in error handling path 2024-03-07 12:03:19 +01:00
apm
apple
aquantia net: atlantic: Fix DMA mapping for PTP hwts ring 2024-02-02 20:47:05 -08:00
arc
asix
atheros
broadcom net: bcmasp: Sanity check is off by one 2024-02-18 11:32:10 +00:00
brocade bnad: fix work_queue type mismatch 2024-02-14 12:49:47 +00:00
cadence
calxeda
cavium net: fill in MODULE_DESCRIPTION()s for liquidio 2024-01-24 15:12:20 -08:00
chelsio
cirrus net: fill in MODULE_DESCRIPTION()s for ep93xxx_eth 2024-01-24 15:12:20 -08:00
cisco enic: Avoid false positive under FORTIFY_SOURCE 2024-02-19 10:57:27 +00:00
cortina net: ethernet: cortina: Drop TSO support 2024-01-07 16:05:00 +00:00
davicom
dec
dlink
emulex
engleder tsnep: Fix mapping for zero copy XDP_TX action 2024-02-03 12:40:02 +00:00
ezchip net: fill in MODULE_DESCRIPTION()s for nps_enet 2024-01-24 15:12:20 -08:00
faraday
freescale net: dpaa: fman_memac: accept phy-interface-type = "10gbase-r" in the device tree 2024-02-23 11:22:42 +00:00
fujitsu
fungible
google gve: Fix skb truesize underestimation 2024-01-25 17:08:34 -08:00
hisilicon Networking changes for 6.8. 2024-01-11 10:07:29 -08:00
huawei
i825xx
ibm mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDER 2024-01-08 15:27:15 -08:00
intel Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 2024-03-06 10:28:02 +00:00
litex net: fill in MODULE_DESCRIPTION()s for litex 2024-01-24 15:12:21 -08:00
marvell octeontx2-af: Consider the action set by PF 2024-02-21 11:19:22 +00:00
mediatek net: ethernet: mtk_eth_soc: set DMA coherent mask to get PPE working 2024-01-25 17:20:12 -08:00
mellanox dpll: move all dpll<>netdev helpers to dpll code 2024-03-05 18:36:42 -08:00
micrel spi: Updates for v6.8 2024-01-09 15:02:12 -08:00
microchip net: sparx5: Fix use after free inside sparx5_del_mact_entry 2024-03-04 20:38:22 -08:00
microsoft RDMA v6.8 merge window 2024-01-12 13:52:21 -08:00
moxa
mscc
myricom
natsemi
neterion net: fill in MODULE_DESCRIPTION()s for s2io 2024-01-11 16:16:08 -08:00
netronome nfp: enable NETDEV_XDP_ACT_REDIRECT feature flag 2024-02-05 11:11:09 +00:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: restore netdev feature bits after reset 2024-02-27 13:03:32 +01:00
qlogic Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-01-04 18:06:46 -08:00
qualcomm Including fixes from bpf and netfilter. 2024-01-18 17:33:50 -08:00
rdc
realtek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-01-04 18:06:46 -08:00
renesas net: ravb: Count packets instead of descriptors in GbEth RX path 2024-02-15 07:55:30 -08:00
rocker
samsung
seeq
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-01-04 18:06:46 -08:00
sgi
silan
sis
smsc
socionext
stmicro stmmac: Clear variable when destroying workqueue 2024-02-28 11:24:39 +00:00
sun
sunplus
synopsys
tehuti
ti net: bql: fix building with BQL disabled 2024-03-01 08:46:15 +00:00
toshiba ps3/gelic: Fix SKB allocation 2024-02-23 11:59:30 +00:00
tundra
vertexcom
via
wangxun net: fill in MODULE_DESCRIPTION()s for wx_lib 2024-01-12 12:17:37 +00:00
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile