Skip to content

Commit

Permalink
gdth: unmap ccb_phys when scsi_add_host() fails in gdth_eisa_probe_one()
Browse files Browse the repository at this point in the history
unmap ccb_phys as well when scsi_add_host() fails

Signed-off-by: Roel Kluin <[email protected]>
Cc: Achim Leubner <[email protected]>
Cc: James E.J. Bottomley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
RoelKluin authored and torvalds committed Aug 11, 2010
1 parent ef3f7cc commit 2c076ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/gdth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 2c076ee

Please sign in to comment.