Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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) {
					if (saved_chann <=
					    LPFC_FCP_IO_CHAN_MAX) {
						chann[saved_chann] =
							cpup->channel_id;
						saved_chann++;
					}
					goto out;
				}