From: James Bottomley Date: Sun, 2 Oct 2005 20:22:35 +0000 (-0500) Subject: [SCSI] aic7xxx/aic79xx: fix module removal path not to panic X-Git-Tag: v2.6.14-rc4~84^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97af50f60ff1202b0dd9ce481d4cf98c6a578bec;p=pandora-kernel.git [SCSI] aic7xxx/aic79xx: fix module removal path not to panic In these drivers, scsi_remove_host() is called too late, at the point it is called, the driver has already shut down too far to accept any I/O that the shutdown might generate. Any generated I/O actually triggers a panic. Fix this by calling scsi_remove_host() as early as possible and not calling scsi_host_put() until just before we kfree the ahc_softc. Signed-off-by: James Bottomley --- Reading git-diff-tree failed