mirror-linux/drivers/net/ethernet
Andreas Haarmann-Thiemann b266bacba7 net: ethernet: cortina: Drop half-assembled SKB
In gmac_rx() (drivers/net/ethernet/cortina/gemini.c), when
gmac_get_queue_page() returns NULL for the second page of a multi-page
fragment, the driver logs an error and continues — but does not free the
partially assembled skb that was being assembled via napi_build_skb() /
napi_get_frags().

Free the in-progress partially assembled skb via napi_free_frags()
and increase the number of dropped frames appropriately
and assign the skb pointer NULL to make sure it is not lingering
around, matching the pattern already used elsewhere in the driver.

Fixes: 4d5ae32f5e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
Signed-off-by: Andreas Haarmann-Thiemann <eitschman@nebelreich.de>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20260505-gemini-ethernet-fix-v2-1-997c31d06079@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-06 18:43:41 -07:00
..
3com drivers: net: 3com: 3c589: Remove this driver 2026-04-23 15:56:49 -07:00
8390 drivers: net: 8390: wd80x3: Remove this driver 2026-04-23 15:57:10 -07:00
actions
adaptec
adi treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
aeroflex
agere Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
airoha net: airoha: Move entries to queue head in case of DMA mapping failure in airoha_dev_xmit() 2026-04-30 18:08:48 -07:00
alacritech Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
allwinner treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
altera net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() 2026-04-02 18:25:23 -07:00
amazon net: ena: convert to use .get_rx_ring_count 2026-01-17 18:10:16 -08:00
amd amd-xgbe: fix PTP addend overflow causing frozen clock 2026-05-02 10:16:27 -07:00
apm Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
apple
aquantia net: atlantic: fix reading SFP module info on some AQC100 cards 2026-02-26 19:20:53 -08:00
arc net: ethernet: arc: emac: quiesce interrupts before requesting IRQ 2026-03-10 19:05:12 -07:00
asix
atheros Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
broadcom bnxt_en: Use absolute target ns from ptp_clock_request 2026-05-05 17:36:15 -07:00
brocade Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
cadence net: macb: Use napi_schedule_irqoff() in IRQ handler 2026-04-09 20:17:31 -07:00
calxeda Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
cavium Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
chelsio ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs 2026-03-29 11:21:22 -07:00
cirrus
cisco enic: detect admin channel resources for SR-IOV 2026-04-02 18:05:06 -07:00
cortina net: ethernet: cortina: Drop half-assembled SKB 2026-05-06 18:43:41 -07:00
davicom
dec
dlink net: dlink: replace printk() with netdev_{info,dbg}() in rio_probe1() 2026-01-06 17:11:38 -08:00
emulex Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
engleder Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
ezchip
faraday net: ftgmac100: fix ring allocation unwind on open failure 2026-03-31 19:38:36 -07:00
freescale net: enetc: fix VSI mailbox timeout handling and DMA lifecycle 2026-04-30 17:35:56 -07:00
fungible Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
google gve: add support for UDP GSO for DQO format 2026-03-09 19:17:52 -07:00
hisilicon Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
huawei hinic3: Fix spelling mistake "capbility" -> "capability" 2026-03-14 08:46:41 -07:00
i825xx
ibm ibmveth: Disable GSO for packets with small MSS 2026-04-27 19:07:57 -07:00
intel ice: add dpll peer notification for paired SMA and U.FL pins 2026-04-30 11:37:39 +02:00
litex net: ethernet: litex: use device pointer to simplify code. 2026-02-27 19:25:16 -08:00
marvell octeontx2-af: npc: cn20k: Reject missing default-rule MCAM indices 2026-04-30 18:50:17 -07:00
mediatek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-04-14 12:04:00 -07:00
mellanox net/mlx5e: SD, Fix race condition in secondary device probe/remove 2026-05-05 19:13:09 -07:00
meta fbnic: convert to ndo_set_rx_mode_async 2026-04-21 12:50:24 +02:00
micrel net: ks8851: Avoid excess softirq scheduling 2026-04-18 12:14:19 -07:00
microchip net: lan743x: rename chip_rev to fpga_rev 2026-04-12 09:41:56 -07:00
microsoft net: mana: Fix crash from unvalidated SHM offset read from BAR0 during FLR 2026-05-05 15:43:08 +02:00
moxa
mscc Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mucse
myricom Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
natsemi
netronome nfp: fix swapped arguments in nfp_encode_basic_qdr() calls 2026-04-23 11:01:20 -07:00
ni
nvidia Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
nxp
oki-semi
pasemi Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
pensando Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-03-26 12:09:57 -07:00
qlogic qed: Reimplement qed_mcast_bin_from_mac() using library functions 2026-03-18 19:07:37 -07:00
qualcomm net: qualcomm: qca_uart: report the consumed byte on RX skb allocation failure 2026-04-03 15:32:56 -07:00
rdc
realtek r8169: add support for RTL8125cp 2026-03-05 13:41:48 +01:00
renesas net: rtsn: fix mdio_node leak in rtsn_mdio_alloc() 2026-05-06 17:42:50 -07:00
rocker net: rocker: kzalloc + kcalloc to kzalloc_flex 2026-03-09 18:51:07 -07:00
samsung Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
seeq
sfc sfc: fix error code in efx_devlink_info_running_versions() 2026-04-30 13:44:30 +02:00
sgi
silan
sis Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
smsc drivers: net: smsc: smc91c92: Remove this driver 2026-04-23 15:57:06 -07:00
socionext Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
spacemit Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-03-12 12:53:34 -07:00
stmicro net: stmmac: Prevent NULL deref when RX memory exhausted 2026-04-28 12:26:20 +02:00
sun Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sunplus treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
synopsys Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tehuti
ti net: ethernet: ti: am65-cpsw: add support for J722S SoC family 2026-04-12 08:29:03 -07:00
toshiba Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tundra
vertexcom
via Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
wangxun net: libwx: use request_irq for VF misc interrupt 2026-04-30 18:07:21 -07:00
wiznet
xilinx net: xilinx: axienet: Fix BQL accounting for multi-BD TX packets 2026-03-31 12:09:12 +02:00
xircom
xscale net: ethernet: xscale: Check for PTP support properly 2026-02-20 16:10:24 -08:00
Kconfig drivers: net: fujitsu: fmvj18x: Remove this driver 2026-04-23 15:57:10 -07:00
Makefile drivers: net: fujitsu: fmvj18x: Remove this driver 2026-04-23 15:57:10 -07:00
ec_bhf.c net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle 2026-02-17 17:16:55 -08:00
ethoc.c
fealnx.c
jme.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
jme.h
korina.c
lantiq_etop.c
lantiq_xrx200.c
oa_tc6.c