--- 2.5/drivers/scsi/scsi_scan.c Sun Sep 22 06:25:17 2002 +++ build-2.5/drivers/scsi/scsi_scan.c Sun Oct 6 14:21:58 2002 @@ -1526,8 +1526,9 @@ GFP_DMA : 0); if (scsi_result == NULL) goto alloc_failed; - +printk(KERN_INFO"scsi_result: %p, start %lxh.\n",scsi_result, ((unsigned long*)scsi_result)[-1]); scsi_probe_lun(sreq, scsi_result, &bflags); +printk(KERN_INFO"scsi_result: %p, start %lxh.\n",scsi_result, ((unsigned long*)scsi_result)[-1]); if (sreq->sr_result) res = SCSI_SCAN_NO_RESPONSE; else { @@ -1550,8 +1551,10 @@ " no device added\n")); res = SCSI_SCAN_TARGET_PRESENT; } else { +printk(KERN_INFO"scsi_result: %p, start %lxh.\n",scsi_result, ((unsigned long*)scsi_result)[-1]); res = scsi_add_lun(sdevscan, &sdev, sreq, scsi_result, &bflags); +printk(KERN_INFO"scsi_result: %p, start %lxh.\n",scsi_result, ((unsigned long*)scsi_result)[-1]); if (res == SCSI_SCAN_LUN_PRESENT) { BUG_ON(sdev == NULL); if ((bflags & BLIST_KEY) != 0) { @@ -1574,9 +1577,13 @@ } } } +printk(KERN_INFO"scsi_result: %p, start %lxh.\n",scsi_result, ((unsigned long*)scsi_result)[-1]); kfree(scsi_result); +printk(KERN_INFO"after kfree\n"); scsi_release_request(sreq); +printk(KERN_INFO"after release_request\n"); scsi_release_commandblocks(sdevscan); +printk(KERN_INFO"after release_commandblocks\n"); return res; alloc_failed: