diff options
| author | Cong Wang <xiyou.wangcong@gmail.com> | 2019-06-27 14:30:58 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-04 09:34:54 +0200 |
| commit | 6979ab4d3c7c94beb18de3abd430301579281a6e (patch) | |
| tree | 6e9b04225802f8f80250c05484d772d32a42fef6 /include/linux/timerqueue.h | |
| parent | 6334936646da6ea689c8d082cec2dc6f372348bc (diff) | |
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: syzbot+d6636a36d3c34bd88938@syzkaller.appspotmail.com
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
