Commit 6690e0d4 authored by James Smart's avatar James Smart Committed by Martin K. Petersen

lpfc: Fix driver crash when module parameter lpfc_fcp_io_channel set to 16

Fix driver crash when module parameter lpfc_fcp_io_channel set to 16
Signed-off-by: default avatarDick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: default avatarJames Smart <james.smart@avagotech.com>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4b7789b7
...@@ -8833,9 +8833,12 @@ lpfc_sli4_set_affinity(struct lpfc_hba *phba, int vectors) ...@@ -8833,9 +8833,12 @@ lpfc_sli4_set_affinity(struct lpfc_hba *phba, int vectors)
* already mapped to this phys_id. * already mapped to this phys_id.
*/ */
if (cpup->irq != LPFC_VECTOR_MAP_EMPTY) { if (cpup->irq != LPFC_VECTOR_MAP_EMPTY) {
if (saved_chann <=
LPFC_FCP_IO_CHAN_MAX) {
chann[saved_chann] = chann[saved_chann] =
cpup->channel_id; cpup->channel_id;
saved_chann++; saved_chann++;
}
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment