summaryrefslogtreecommitdiffstats
path: root/drivers/usb/mtu3
diff options
context:
space:
mode:
authorNguyen Dinh Phi <phind.uet@gmail.com>2021-07-18 16:40:13 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-18 18:48:59 +0200
commit517a16b1a88bdb6b530f48d5d153478b2552d9a8 (patch)
treef4f583c228c1b512633c230b1caa027517b2f6fc /drivers/usb/mtu3
parentsctp: trim optlen when it's a huge value in sctp_setsockopt (diff)
downloadlinux-517a16b1a88bdb6b530f48d5d153478b2552d9a8.tar.xz
linux-517a16b1a88bdb6b530f48d5d153478b2552d9a8.zip
netrom: Decrease sock refcount when sock timers expire
Commit 63346650c1a9 ("netrom: switch to sock timer API") switched to use sock timer API. It replaces mod_timer() by sk_reset_timer(), and del_timer() by sk_stop_timer(). Function sk_reset_timer() will increase the refcount of sock if it is called on an inactive timer, hence, in case the timer expires, we need to decrease the refcount ourselves in the handler, otherwise, the sock refcount will be unbalanced and the sock will never be freed. Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com> Reported-by: syzbot+10f1194569953b72f1ae@syzkaller.appspotmail.com Fixes: 63346650c1a9 ("netrom: switch to sock timer API") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/mtu3')
0 files changed, 0 insertions, 0 deletions