Skip to contentSkip to conversation

gdth: unmap ccb_phys when scsi_add_host() fails in gdth_eisa_probe_one()

PATCH New [email protected] 1 participant 1 message Apr 27, 2010 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 5/28 gdth: unmap ccb_phys when scsi_add_host() fails in gdth_eisa_probe_one()

From: Roel Kluin <[email protected]>

unmap ccb_phys as well when scsi_add_host() fails

Cc Achim Leubner <[email protected]>
Cc James E.J. Bottomley <[email protected]>

---

 drivers/scsi/gdth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/gdth.c renamed from drivers/scsi/gdth.c~gdth-unmap-ccb_phys-when-scsi_add_host-fails-in-gdth_eisa_probe_one +1 -1
diff -puN drivers/scsi/gdth.c~gdth-unmap-ccb_phys-when-scsi_add_host-fails-in-gdth_eisa_probe_one drivers/scsi/gdth.c
@@ -4904,7 +4904,7 @@ static int __init gdth_eisa_probe_one(u1
 
 	error = scsi_add_host(shp, NULL);
 	if (error)
-		goto out_free_coal_stat;
+		goto out_free_ccb_phys;
 	list_add_tail(&ha->list, &gdth_instances);
 	gdth_timer_init();
 

_