linux_dsm_epyc7002/drivers/net/wan
Cong Wang d5c7c745f2 net/wan: fix a double free in x25_asy_open_tty()
When x25_asy_open() fails, it already cleans up by itself,
so its caller doesn't need to free the memory again.

It seems we still have to call x25_asy_free() to clear the SLF_INUSE
bit, so just set these pointers to NULL after kfree().

Reported-and-tested-by: syzbot+5e5e969e525129229052@syzkaller.appspotmail.com
Fixes: 3b780bed31 ("x25_asy: Free x25_asy on x25_asy_open() failure.")
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-12-30 20:22:48 -08:00
..
lmc
.gitignore
c101.c net: wan: remove redundant include 2018-09-18 20:08:08 -07:00
cosa.c
cosa.h
dlci.c
dscc4.c
farsync.c
farsync.h
fsl_ucc_hdlc.c net/wan/fsl_ucc_hdlc: Avoid double free in ucc_hdlc_probe() 2018-12-27 16:28:20 -08:00
fsl_ucc_hdlc.h net/wan/fsl_ucc_hdlc: hmask 2018-09-03 22:14:41 -07:00
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc_cisco.c
hdlc_fr.c
hdlc_ppp.c
hdlc_raw_eth.c
hdlc_raw.c
hdlc_x25.c
hdlc.c
hostess_sv11.c
ixp4xx_hss.c
Kconfig
lapbether.c
Makefile
n2.c
pc300too.c
pci200syn.c net: wan: remove redundant include 2018-09-18 20:08:08 -07:00
sbni.c
sbni.h
sdla.c
sealevel.c
slic_ds26522.c
slic_ds26522.h
wanxl.c
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c net/wan: fix a double free in x25_asy_open_tty() 2018-12-30 20:22:48 -08:00
x25_asy.h
z85230.c
z85230.h