gdth: unmap ccb_phys when scsi_add_host() fails in gdth_eisa_probe_one()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 11 Aug 2010 01:01:10 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:00 +0000 (08:59 -0700)
unmap ccb_phys as well when scsi_add_host() fails

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Achim Leubner <achim_leubner@adaptec.com>
Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/gdth.c

index f672d62..b860d65 100644 (file)
@@ -4914,7 +4914,7 @@ static int __init gdth_eisa_probe_one(u16 eisa_slot)
 
        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();