aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_sli.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2012-06-12 13:54:02 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 03:58:25 -0400
commit4f4c18634d2a05079194ba333c7882349f25d6f7 (patch)
treeead0516a355eccf4d2145222ad962ebde2048664 /drivers/scsi/lpfc/lpfc_sli.c
parenteb47aa2c2145f106a9ba2f95696b16520f1c8119 (diff)
[SCSI] lpfc 8.3.32: lpfc_sli.c: add missing jumps to mempool_free
Incorporate patch originally supplied by Julia Lawall <Julia.Lawall@lip6.fr> http://marc.info/?l=linux-scsi&m=133572879711140&w=2 "It appears that mempool_free should be performed on these failures as on the other exists from the containing functions." Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index b4720a109817..aace596887e6 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -12228,8 +12228,10 @@ lpfc_cq_create(struct lpfc_hba *phba, struct lpfc_queue *cq,
12228 lpfc_printf_log(phba, KERN_ERR, LOG_SLI, 12228 lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
12229 "0361 Unsupported CQ count. (%d)\n", 12229 "0361 Unsupported CQ count. (%d)\n",
12230 cq->entry_count); 12230 cq->entry_count);
12231 if (cq->entry_count < 256) 12231 if (cq->entry_count < 256) {
12232 return -EINVAL; 12232 status = -EINVAL;
12233 goto out;
12234 }
12233 /* otherwise default to smallest count (drop through) */ 12235 /* otherwise default to smallest count (drop through) */
12234 case 256: 12236 case 256:
12235 bf_set(lpfc_cq_context_count, &cq_create->u.request.context, 12237 bf_set(lpfc_cq_context_count, &cq_create->u.request.context,
@@ -12420,8 +12422,10 @@ lpfc_mq_create(struct lpfc_hba *phba, struct lpfc_queue *mq,
12420 lpfc_printf_log(phba, KERN_ERR, LOG_SLI, 12422 lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
12421 "0362 Unsupported MQ count. (%d)\n", 12423 "0362 Unsupported MQ count. (%d)\n",
12422 mq->entry_count); 12424 mq->entry_count);
12423 if (mq->entry_count < 16) 12425 if (mq->entry_count < 16) {
12424 return -EINVAL; 12426 status = -EINVAL;
12427 goto out;
12428 }
12425 /* otherwise default to smallest count (drop through) */ 12429 /* otherwise default to smallest count (drop through) */
12426 case 16: 12430 case 16:
12427 bf_set(lpfc_mq_context_ring_size, 12431 bf_set(lpfc_mq_context_ring_size,
@@ -12710,8 +12714,10 @@ lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq,
12710 lpfc_printf_log(phba, KERN_ERR, LOG_SLI, 12714 lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
12711 "2535 Unsupported RQ count. (%d)\n", 12715 "2535 Unsupported RQ count. (%d)\n",
12712 hrq->entry_count); 12716 hrq->entry_count);
12713 if (hrq->entry_count < 512) 12717 if (hrq->entry_count < 512) {
12714 return -EINVAL; 12718 status = -EINVAL;
12719 goto out;
12720 }
12715 /* otherwise default to smallest count (drop through) */ 12721 /* otherwise default to smallest count (drop through) */
12716 case 512: 12722 case 512:
12717 bf_set(lpfc_rq_context_rqe_count, 12723 bf_set(lpfc_rq_context_rqe_count,
@@ -12791,8 +12797,10 @@ lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq,
12791 lpfc_printf_log(phba, KERN_ERR, LOG_SLI, 12797 lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
12792 "2536 Unsupported RQ count. (%d)\n", 12798 "2536 Unsupported RQ count. (%d)\n",
12793 drq->entry_count); 12799 drq->entry_count);
12794 if (drq->entry_count < 512) 12800 if (drq->entry_count < 512) {
12795 return -EINVAL; 12801 status = -EINVAL;
12802 goto out;
12803 }
12796 /* otherwise default to smallest count (drop through) */ 12804 /* otherwise default to smallest count (drop through) */
12797 case 512: 12805 case 512:
12798 bf_set(lpfc_rq_context_rqe_count, 12806 bf_set(lpfc_rq_context_rqe_count,