linux-stable/drivers/net/wan
Lv Yunlong d9670f5e77 drivers/net/wan/hdlc_fr: Fix a double free in pvc_xmit
[ Upstream commit 1b479fb801 ]

In pvc_xmit, if __skb_pad(skb, pad, false) failed, it will free
the skb in the first time and goto drop. But the same skb is freed
by kfree_skb(skb) in the second time in drop.

Maintaining the original function unchanged, my patch adds a new
label out to avoid the double free if __skb_pad() failed.

Fixes: f5083d0cee ("drivers/net/wan/hdlc_fr: Improvements to the code of pvc_xmit")
Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-14 08:42:07 +02:00
..
lmc net: wan/lmc: unregister device when no matching device is found 2021-04-07 15:00:08 +02:00
.gitignore
c101.c
cosa.c cosa: Add missing kfree in error path of cosa_write 2020-11-11 17:52:01 -08:00
cosa.h
dlci.c net: wan: dlci: Remove set but not used variable 'err' 2020-08-14 20:42:25 -07:00
farsync.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
farsync.h
fsl_ucc_hdlc.c net: wan: fix error return code of uhdlc_init() 2021-03-30 14:31:49 +02:00
fsl_ucc_hdlc.h
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc.c net: hdlc: In hdlc_rcv, check to make sure dev is an HDLC device 2020-10-21 17:20:19 -07:00
hdlc_cisco.c drivers/net/wan/hdlc: Set skb->protocol before transmitting 2020-09-17 16:41:12 -07:00
hdlc_fr.c drivers/net/wan/hdlc_fr: Fix a double free in pvc_xmit 2021-04-14 08:42:07 +02:00
hdlc_ppp.c net: hdlc_ppp: Fix issues when mod_timer is called while timer is running 2021-01-12 20:18:13 +01:00
hdlc_raw.c
hdlc_raw_eth.c net: hdlc_raw_eth: Clear the IFF_TX_SKB_SHARING flag after calling ether_setup 2020-10-21 17:58:26 -07:00
hdlc_x25.c net: hdlc_x25: Prevent racing between "x25_close" and "x25_xmit"/"x25_rx" 2021-03-30 14:31:59 +02:00
hostess_sv11.c
ixp4xx_hss.c
Kconfig wan: ds26522: select CONFIG_BITREVERSE 2021-01-17 14:17:04 +01:00
lapbether.c net: lapbether: Remove netif_start_queue / netif_stop_queue 2021-03-17 17:06:15 +01:00
Makefile
n2.c
pc300too.c
pci200syn.c
sbni.c wan: sbni: Avoid comma separated statements 2020-08-25 07:54:19 -07:00
sbni.h
sdla.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
sealevel.c
slic_ds26522.c net: wan: slic_ds26522: Remove unused macro DRV_NAME 2020-08-31 12:40:42 -07:00
slic_ds26522.h
wanxl.c wan: wanxl: switch from 'pci_' to 'dma_' API 2020-08-04 16:17:00 -07:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
x25_asy.h drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT" 2020-09-11 14:43:52 -07:00
z85230.c
z85230.h