mirror-linux/drivers/net/wan
Holger Brunck 496c0c4c53 net: wan: fsl_ucc_hdlc: free tx_skbuff in uhdlc_memclean
When the device is removed all allocated resources should be freed.
In uhdlc_memclean the netdev transmit queue was already stopped. But at
this point we may have pending skb in the transmit queue which must be
freed. Therefore iterate over the tx_skbuff pointers and free all
pending skb. The issue was discovered by sashiko.
Tested on a ls1043a board running HDLC in bus mode on kernel 6.12.

https: //sashiko.dev/#/patchset/20260429114208.941011-1-holger.brunck%40hitachienergy.com
Fixes: c19b6d246a ("drivers/net: support hdlc function for QE-UCC")
Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
Link: https://patch.msgid.link/20260507155332.3452319-1-holger.brunck@hitachienergy.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-08 18:48:30 -07:00
..
framer Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
.gitignore
Kconfig
Makefile
c101.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
farsync.c Including fixes from IPsec, Bluetooth and netfilter 2026-02-26 08:00:13 -08:00
farsync.h
fsl_qmc_hdlc.c net: Switch back to struct platform_driver::remove() 2024-10-04 16:39:57 -07:00
fsl_ucc_hdlc.c net: wan: fsl_ucc_hdlc: free tx_skbuff in uhdlc_memclean 2026-05-08 18:48:30 -07:00
fsl_ucc_hdlc.h
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc.c
hdlc_cisco.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hdlc_fr.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
hdlc_ppp.c hdlc_ppp: fix potential null pointer in ppp_cp_event logging 2025-10-14 12:40:49 +02:00
hdlc_raw.c
hdlc_raw_eth.c
hdlc_x25.c
ixp4xx_hss.c net: Switch back to struct platform_driver::remove() 2024-10-04 16:39:57 -07:00
lapbether.c net: lapbether: handle NETDEV_PRE_TYPE_CHANGE 2026-04-03 14:40:36 -07:00
n2.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pc300too.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci200syn.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
slic_ds26522.c
slic_ds26522.h
wanxl.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
wanxl.h
wanxlfw.S
wanxlfw.inc_shipped