Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc59a2ab authored by Cong Wang's avatar Cong Wang Committed by Greg Kroah-Hartman
Browse files

netrom: fix a memory leak in nr_rx_frame()



[ Upstream commit c8c8218ec5af5d2598381883acbefbf604e56b5e ]

When the skb is associated with a new sock, just assigning
it to skb->sk is not sufficient, we have to set its destructor
to free the sock properly too.

Reported-by: default avatar <syzbot+d6636a36d3c34bd88938@syzkaller.appspotmail.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c5cb5a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment