提交 2c076eea 编写于 作者: R Roel Kluin 提交者: Linus Torvalds

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

unmap ccb_phys as well when scsi_add_host() fails
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Cc: Achim Leubner <achim_leubner@adaptec.com>
Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ef3f7cc4
...@@ -4914,7 +4914,7 @@ static int __init gdth_eisa_probe_one(u16 eisa_slot) ...@@ -4914,7 +4914,7 @@ static int __init gdth_eisa_probe_one(u16 eisa_slot)
error = scsi_add_host(shp, NULL); error = scsi_add_host(shp, NULL);
if (error) if (error)
goto out_free_coal_stat; goto out_free_ccb_phys;
list_add_tail(&ha->list, &gdth_instances); list_add_tail(&ha->list, &gdth_instances);
gdth_timer_init(); gdth_timer_init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册