summaryrefslogtreecommitdiff
path: root/net/netrom
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-12-30 00:56:37 +0300
committerDavid S. Miller <davem@davemloft.net>2018-12-31 07:22:48 +0300
commitd5c7c745f254c6cb98b3b3f15fe789b8bd770c72 (patch)
tree7fc6a09d7ea3da996a921d319f2d7ae22a321039 /net/netrom
parentc433570458e49bccea5c551df628d058b3526289 (diff)
downloadlinux-d5c7c745f254c6cb98b3b3f15fe789b8bd770c72.tar.xz
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: 3b780bed3138 ("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>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions