lpfc: Fix driver crash when module parameter lpfc_fcp_io_channel set to 16
[ Upstream commit 6690e0d4fc5cccf74534abe0c9f9a69032bc02f0 ] Fix driver crash when module parameter lpfc_fcp_io_channel set to 16 Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com> Signed-off-by: James Smart <james.smart@avagotech.com> Reviewed-by: Hannes Reinicke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0217efc5b8
commit
7cf5c223cc
1 changed files with 6 additions and 3 deletions
|
@ -8834,9 +8834,12 @@ found:
|
||||||
* 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue