diff options
author | adam radford <aradford@gmail.com> | 2011-02-24 23:55:56 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-28 12:42:36 -0500 |
commit | eb1b12377376e43aae4be338ffbbc32931ca4d10 (patch) | |
tree | e89c0e44872ab4a95b5e0ff1f80d79d676ed638f /drivers/scsi/megaraid/megaraid_sas_fusion.c | |
parent | 183ce896d726fb987da589fa8e36fb7214a494cc (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.c | 6 |
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 | ||
987 | fail_alloc_cmds: | ||
988 | fail_alloc_mfi_cmds: | ||
989 | fail_map_info: | 987 | fail_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]); |
993 | fail_ioc_init: | 991 | fail_ioc_init: |
992 | megasas_free_cmds_fusion(instance); | ||
993 | fail_alloc_cmds: | ||
994 | megasas_free_cmds(instance); | ||
995 | fail_alloc_mfi_cmds: | ||
994 | return 1; | 996 | return 1; |
995 | } | 997 | } |
996 | 998 | ||