aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas_fusion.c
diff options
context:
space:
mode:
authoradam radford <aradford@gmail.com>2011-02-24 23:55:56 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-28 12:42:36 -0500
commiteb1b12377376e43aae4be338ffbbc32931ca4d10 (patch)
treee89c0e44872ab4a95b5e0ff1f80d79d676ed638f /drivers/scsi/megaraid/megaraid_sas_fusion.c
parent183ce896d726fb987da589fa8e36fb7214a494cc (diff)
[SCSI] megaraid_sas: Fix failure gotos
Signed-off-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas_fusion.c')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_fusion.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index c1e09d5a6196..26865290c22a 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -984,13 +984,15 @@ megasas_init_adapter_fusion(struct megasas_instance *instance)
984 984
985 return 0; 985 return 0;
986 986
987fail_alloc_cmds:
988fail_alloc_mfi_cmds:
989fail_map_info: 987fail_map_info:
990 if (i == 1) 988 if (i == 1)
991 dma_free_coherent(&instance->pdev->dev, fusion->map_sz, 989 dma_free_coherent(&instance->pdev->dev, fusion->map_sz,
992 fusion->ld_map[0], fusion->ld_map_phys[0]); 990 fusion->ld_map[0], fusion->ld_map_phys[0]);
993fail_ioc_init: 991fail_ioc_init:
992 megasas_free_cmds_fusion(instance);
993fail_alloc_cmds:
994 megasas_free_cmds(instance);
995fail_alloc_mfi_cmds:
994 return 1; 996 return 1;
995} 997}
996 998