]> git.baikalelectronics.ru Git - kernel.git/commit
mISDN: fix race in timer canceling on module unloading
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Fri, 14 Dec 2012 01:02:36 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2012 18:14:07 +0000 (13:14 -0500)
commit19f0fcc235a5e8e47dea8917148fb64541c848d3
tree506c5e09cc6d86e7a7a644b72db3e98c58fe84b9
parent11042ac26abbf101089dee52eb3127e530ab1b4c
mISDN: fix race in timer canceling on module unloading

Using timer_pending() without additional syncronization is racy,
del_timer_sync() must be used here for waiting in-flight handler.
Bug caught with help from "debug-objects" during random insmod/rmmod.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/dsp_core.c