diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-05-17 21:12:50 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-05-17 21:12:50 -0400 |
commit | e7ca7f9fa2cda220ba807620c992ce77c33a32ea (patch) | |
tree | fb8a6c1abc638c5a79645f4b9f44ece7c67187b4 /drivers/scsi | |
parent | 5f0dfb7a9bcc8139958f59ecb9bbd7e738ae702d (diff) | |
parent | d65c8fff867a6450c58ce31572e883148a445ddf (diff) |
Merge branch 'fixes' into misc
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_alua.c | 1 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_mem.c | 6 | ||||
-rw-r--r-- | drivers/scsi/qla1280.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c index b2244eb90776..752b5c9d1ab2 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++ b/drivers/scsi/device_handler/scsi_dh_alua.c | |||
@@ -541,6 +541,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg) | |||
541 | return SCSI_DH_DEV_TEMP_BUSY; | 541 | return SCSI_DH_DEV_TEMP_BUSY; |
542 | 542 | ||
543 | retry: | 543 | retry: |
544 | err = 0; | ||
544 | retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags); | 545 | retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags); |
545 | 546 | ||
546 | if (retval) { | 547 | if (retval) { |
diff --git a/drivers/scsi/lpfc/lpfc_mem.c b/drivers/scsi/lpfc/lpfc_mem.c index 4fb3581d4614..3fa65338d3f5 100644 --- a/drivers/scsi/lpfc/lpfc_mem.c +++ b/drivers/scsi/lpfc/lpfc_mem.c | |||
@@ -231,13 +231,15 @@ lpfc_mem_free(struct lpfc_hba *phba) | |||
231 | if (phba->lpfc_hbq_pool) | 231 | if (phba->lpfc_hbq_pool) |
232 | pci_pool_destroy(phba->lpfc_hbq_pool); | 232 | pci_pool_destroy(phba->lpfc_hbq_pool); |
233 | phba->lpfc_hbq_pool = NULL; | 233 | phba->lpfc_hbq_pool = NULL; |
234 | mempool_destroy(phba->rrq_pool); | 234 | |
235 | if (phba->rrq_pool) | ||
236 | mempool_destroy(phba->rrq_pool); | ||
235 | phba->rrq_pool = NULL; | 237 | phba->rrq_pool = NULL; |
236 | 238 | ||
237 | /* Free NLP memory pool */ | 239 | /* Free NLP memory pool */ |
238 | mempool_destroy(phba->nlp_mem_pool); | 240 | mempool_destroy(phba->nlp_mem_pool); |
239 | phba->nlp_mem_pool = NULL; | 241 | phba->nlp_mem_pool = NULL; |
240 | if (phba->sli_rev == LPFC_SLI_REV4) { | 242 | if (phba->sli_rev == LPFC_SLI_REV4 && phba->active_rrq_pool) { |
241 | mempool_destroy(phba->active_rrq_pool); | 243 | mempool_destroy(phba->active_rrq_pool); |
242 | phba->active_rrq_pool = NULL; | 244 | phba->active_rrq_pool = NULL; |
243 | } | 245 | } |
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 5d0ec42a9317..634254a52301 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -4214,7 +4214,7 @@ static struct scsi_host_template qla1280_driver_template = { | |||
4214 | .eh_bus_reset_handler = qla1280_eh_bus_reset, | 4214 | .eh_bus_reset_handler = qla1280_eh_bus_reset, |
4215 | .eh_host_reset_handler = qla1280_eh_adapter_reset, | 4215 | .eh_host_reset_handler = qla1280_eh_adapter_reset, |
4216 | .bios_param = qla1280_biosparam, | 4216 | .bios_param = qla1280_biosparam, |
4217 | .can_queue = 0xfffff, | 4217 | .can_queue = MAX_OUTSTANDING_COMMANDS, |
4218 | .this_id = -1, | 4218 | .this_id = -1, |
4219 | .sg_tablesize = SG_ALL, | 4219 | .sg_tablesize = SG_ALL, |
4220 | .use_clustering = ENABLE_CLUSTERING, | 4220 | .use_clustering = ENABLE_CLUSTERING, |