From: Carsten Emde Date: Wed, 21 Sep 2011 08:22:11 +0000 (+0200) Subject: floppy: use del_timer_sync() in init cleanup X-Git-Tag: v3.1-rc7~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4867f6469964e34c5f4ee229a2a7f71a34c7ff;p=pandora-kernel.git floppy: use del_timer_sync() in init cleanup 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 Signed-off-by: Thomas Gleixner Cc: Jens Axboe Cc: Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed