diff options
Diffstat (limited to 'drivers/scsi/mpt2sas')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.c | 5 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c index a78036f5e1a6..82fa6ce481f0 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.c +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c | |||
@@ -2575,6 +2575,11 @@ _base_allocate_memory_pools(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
2575 | 2575 | ||
2576 | ioc->chain_lookup = (struct chain_tracker *)__get_free_pages( | 2576 | ioc->chain_lookup = (struct chain_tracker *)__get_free_pages( |
2577 | GFP_KERNEL, ioc->chain_pages); | 2577 | GFP_KERNEL, ioc->chain_pages); |
2578 | if (!ioc->chain_lookup) { | ||
2579 | printk(MPT2SAS_ERR_FMT "chain_lookup: get_free_pages failed, " | ||
2580 | "sz(%d)\n", ioc->name, (int)sz); | ||
2581 | goto out; | ||
2582 | } | ||
2578 | ioc->chain_dma_pool = pci_pool_create("chain pool", ioc->pdev, | 2583 | ioc->chain_dma_pool = pci_pool_create("chain pool", ioc->pdev, |
2579 | ioc->request_sz, 16, 0); | 2584 | ioc->request_sz, 16, 0); |
2580 | if (!ioc->chain_dma_pool) { | 2585 | if (!ioc->chain_dma_pool) { |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index 193e33e28e49..d953a57e779d 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -5744,7 +5744,7 @@ _scsih_sas_enclosure_dev_status_change_event(struct MPT2SAS_ADAPTER *ioc, | |||
5744 | } | 5744 | } |
5745 | 5745 | ||
5746 | /** | 5746 | /** |
5747 | * _scsih_sas_broadcast_primative_event - handle broadcast events | 5747 | * _scsih_sas_broadcast_primitive_event - handle broadcast events |
5748 | * @ioc: per adapter object | 5748 | * @ioc: per adapter object |
5749 | * @fw_event: The fw_event_work object | 5749 | * @fw_event: The fw_event_work object |
5750 | * Context: user. | 5750 | * Context: user. |
@@ -5752,7 +5752,7 @@ _scsih_sas_enclosure_dev_status_change_event(struct MPT2SAS_ADAPTER *ioc, | |||
5752 | * Return nothing. | 5752 | * Return nothing. |
5753 | */ | 5753 | */ |
5754 | static void | 5754 | static void |
5755 | _scsih_sas_broadcast_primative_event(struct MPT2SAS_ADAPTER *ioc, | 5755 | _scsih_sas_broadcast_primitive_event(struct MPT2SAS_ADAPTER *ioc, |
5756 | struct fw_event_work *fw_event) | 5756 | struct fw_event_work *fw_event) |
5757 | { | 5757 | { |
5758 | struct scsi_cmnd *scmd; | 5758 | struct scsi_cmnd *scmd; |
@@ -7263,7 +7263,7 @@ _firmware_event_work(struct work_struct *work) | |||
7263 | fw_event); | 7263 | fw_event); |
7264 | break; | 7264 | break; |
7265 | case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE: | 7265 | case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE: |
7266 | _scsih_sas_broadcast_primative_event(ioc, | 7266 | _scsih_sas_broadcast_primitive_event(ioc, |
7267 | fw_event); | 7267 | fw_event); |
7268 | break; | 7268 | break; |
7269 | case MPI2_EVENT_SAS_ENCL_DEVICE_STATUS_CHANGE: | 7269 | case MPI2_EVENT_SAS_ENCL_DEVICE_STATUS_CHANGE: |