In 2.6.25 we started using class_find_child instead of implementing our own loop and lookup. The problem is that class_find_child would get a reference to the host's device, then scsi_host_lookup would get an extra reference to it when it called scsi_host_get(). This patch drops the ref from class_find_child because scsi_host_get gets a ref if the host is not being removed. Signed-off-by: Mike Christie --- linux-2.6.25.2/drivers/scsi/hosts.c 2008-05-06 18:21:32.000000000 -0500 +++ linux-2.6.25.2.work/drivers/scsi/hosts.c 2008-06-13 19:43:15.000000000 -0500 @@ -455,9 +455,10 @@ struct Scsi_Host *scsi_host_lookup(unsig struct Scsi_Host *shost = ERR_PTR(-ENXIO); cdev = class_find_child(&shost_class, &hostnum, __scsi_host_match); - if (cdev) + if (cdev) { shost = scsi_host_get(class_to_shost(cdev)); - + class_device_put(cdev); + } return shost; } EXPORT_SYMBOL(scsi_host_lookup);