commit | 97af50f60ff1202b0dd9ce481d4cf98c6a578bec | [log] [tgz] |
---|---|---|
author | James Bottomley <James.Bottomley@steeleye.com> | Sun Oct 02 15:22:35 2005 -0500 |
committer | James Bottomley <jejb@mulgrave.(none)> | Sun Oct 02 15:32:25 2005 -0500 |
tree | 5637b5d7d505869ee5aace5ad6ed33085fc78697 | |
parent | 9e70592fcd87c90e9e98090d66cb79f39d740d4a [diff] |
[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 <James.Bottomley@SteelEye.com>