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)
commit63346650c1a94a92be61a57416ac88c0a47c4327
tree8591f2e324c4f3e77c2f6700f3f041be661219dd
parentc303a9b297fab7ab874fed35f7fd5d9ab559edca
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