diff options
author | adam radford <aradford@gmail.com> | 2011-02-25 07:55:56 +0300 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-28 20:42:36 +0300 |
commit | eb1b12377376e43aae4be338ffbbc32931ca4d10 (patch) | |
tree | e89c0e44872ab4a95b5e0ff1f80d79d676ed638f /drivers/scsi/megaraid/megaraid_sas_fusion.c | |
parent | 183ce896d726fb987da589fa8e36fb7214a494cc (diff) | |
download | linux-eb1b12377376e43aae4be338ffbbc32931ca4d10.tar.xz |
[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) return 0; -fail_alloc_cmds: -fail_alloc_mfi_cmds: fail_map_info: if (i == 1) dma_free_coherent(&instance->pdev->dev, fusion->map_sz, fusion->ld_map[0], fusion->ld_map_phys[0]); fail_ioc_init: + megasas_free_cmds_fusion(instance); +fail_alloc_cmds: + megasas_free_cmds(instance); +fail_alloc_mfi_cmds: return 1; } |