netrom: switch to sock timer API
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 24 Jan 2019 22:18:18 +0000 (14:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 16:33:27 +0000 (17:33 +0100)
commitbaa9e32336bf6d0d74a7c3486d2a27feaf57cd5f
treee98b4f52264fab2958348b5c2b248075ca26afd3
parent024dcf5f6943b48f6b29538487cb0f656de784e7
netrom: switch to sock timer API

[ Upstream commit 63346650c1a94a92be61a57416ac88c0a47c4327 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netrom/nr_timer.c