SCSI: gdth: bugfix for the at-exit problems
authorBoaz Harrosh <bharrosh@panasas.com>
Thu, 6 Mar 2008 02:10:15 +0000 (02:10 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:41 +0000 (11:47 -0700)
commit14bbd0f8e4209f565c83b9e3df2fefbd77e0e961
treeaf72c7eacaa50db09a1aacde1e2e846f22e9114d
parentc0b53aa6d8f2298d6fbe3763ef164f0d8a13c71b
SCSI: gdth: bugfix for the at-exit problems

commit: b31ddd31c266c2ad1b708cad0d3d8e0aa7fa2737

gdth_exit would first remove all cards then stop the timer
and would not sync with the timer function. This caused a crash
in gdth_timer() when module was unloaded.
So del_timer_sync the timer before we delete the cards.

also the reboot notifier function would crash. So clean
that up and fix the crashes.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Tested-by: Joerg Dorchain: <joerg@dorchain.net>
Tested-by: Stefan Priebe <s.priebe@allied-internet.ag>
Tested-by: Jon Chelton <jchelton@ffpglobal.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/gdth.c