]> git.baikalelectronics.ru Git - kernel.git/commit
netrom: switch to sock timer API
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 24 Jan 2019 22:18:18 +0000 (14:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jan 2019 18:38:04 +0000 (10:38 -0800)
commit76161cb883f14034bcadaaba6548cd2ae98f4368
tree8591f2e324c4f3e77c2f6700f3f041be661219dd
parent927307bad6aa5a890a002e900aac1ebf091ea409
netrom: switch to sock timer API

sk_reset_timer() and sk_stop_timer() properly handle
sock refcnt for timer function. Switching to them
could fix a refcounting bug reported by syzbot.

Reported-and-tested-by: syzbot+defa700d16f1bd1b9a05@syzkaller.appspotmail.com
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-hams@vger.kernel.org
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/nr_timer.c