Commit 57ad2def authored by James Smart's avatar James Smart Committed by Tim Gardner

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

BugLink: http://bugs.launchpad.net/bugs/1541592

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>
(cherry picked from commit 6690e0d4)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 060310bd
......@@ -8833,9 +8833,12 @@ lpfc_sli4_set_affinity(struct lpfc_hba *phba, int vectors)
* already mapped to this phys_id.
*/
if (cpup->irq != LPFC_VECTOR_MAP_EMPTY) {
chann[saved_chann] =
cpup->channel_id;
saved_chann++;
if (saved_chann <=
LPFC_FCP_IO_CHAN_MAX) {
chann[saved_chann] =
cpup->channel_id;
saved_chann++;
}
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