summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarsten Emde <C.Emde@osadl.org>2011-09-21 10:22:11 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-03 11:40:36 -0700
commit4f56018181256496943d30defeff3f0e6b50e38b (patch)
treed980921f12040af99013ad5011cc45ce6761645f /lib
parentb7290a21efb472272306d64686efa523f7e93bf6 (diff)
downloadlwn-4f56018181256496943d30defeff3f0e6b50e38b.tar.gz
lwn-4f56018181256496943d30defeff3f0e6b50e38b.zip
floppy: use del_timer_sync() in init cleanup
commit 6c4867f6469964e34c5f4ee229a2a7f71a34c7ff upstream. When no floppy is found the module code can be released while a timer function is pending or about to be executed. CPU0 CPU1 floppy_init() timer_softirq() spin_lock_irq(&base->lock); detach_timer(); spin_unlock_irq(&base->lock); -> Interrupt del_timer(); return -ENODEV; module_cleanup(); <- EOI call_timer_fn(); OOPS Use del_timer_sync() to prevent this. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions