]> 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)
commit62122990c4ab2ddc9c92126f521de9b7ee319122
tree8591f2e324c4f3e77c2f6700f3f041be661219dd
parent688ae6ed5caf64a0582a2e05f0a8467d042b19ae
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