提交 6690e0d4 编写于 作者: J James Smart 提交者: 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: NDick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: NJames Smart <james.smart@avagotech.com>
Reviewed-by: NHannes Reinicke <hare@suse.de>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 4b7789b7
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册