===== hosts.c 1.62 vs edited ===== --- 1.62/drivers/scsi/hosts.c Thu May 8 19:50:22 2003 +++ edited/hosts.c Sun May 11 22:38:50 2003 @@ -258,7 +258,10 @@ **/ void scsi_unregister(struct Scsi_Host *shost) { - scsi_host_put(shost); + if(shost->host_gendev.release == NULL) + scsi_free_shost(shost); + else + scsi_host_put(shost); } /**