Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2019-11-22 14:13:39 +0100
committerDenis Kirjanov <dkirjanov@suse.com>2019-11-27 13:42:53 +0300
commit0715c9a023d3f227df6e1376e6f815c8f15aa164 (patch)
tree99c07c1caa1d2bbc414da247f0e005c4f3bf7cf5
parent3ab3148e34f9fb53c283058dd2464cc3b573be63 (diff)
lpfc: size cpu map by last cpu id set (bsc#1157160).
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 04aa7ab164f1..0b5e0d2306cc 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -6460,7 +6460,7 @@ lpfc_sli4_driver_resource_setup(struct lpfc_hba *phba)
u32 if_fam;
phba->sli4_hba.num_present_cpu = lpfc_present_cpu;
- phba->sli4_hba.num_possible_cpu = num_possible_cpus();
+ phba->sli4_hba.num_possible_cpu = cpumask_last(cpu_possible_mask) + 1;
phba->sli4_hba.curr_disp_cpu = 0;
lpfc_cpumask_of_node_init(phba);